diff --git a/internal/cli/apps_test.go b/internal/cli/apps_test.go index 300c07c5f..d38e12bc8 100644 --- a/internal/cli/apps_test.go +++ b/internal/cli/apps_test.go @@ -51,7 +51,7 @@ func TestClientsListCmd(t *testing.T) { expectTable(t, stdout.String(), []string{"CLIENT ID", "NAME", "TYPE"}, [][]string{ - {"some-name", "generic", "some-id"}, + {"some-id", "some-name", "generic"}, }, ) } diff --git a/internal/display/apps.go b/internal/display/apps.go index 5388a69a7..aaa3837fa 100644 --- a/internal/display/apps.go +++ b/internal/display/apps.go @@ -142,16 +142,16 @@ func (v *applicationListView) AsTableHeader() []string { func (v *applicationListView) AsTableRow() []string { if v.revealSecret { return []string{ + ansi.Faint(v.ClientID), v.Name, v.Type, - ansi.Faint(v.ClientID), ansi.Italic(v.ClientSecret), } } return []string{ + ansi.Faint(v.ClientID), v.Name, v.Type, - ansi.Faint(v.ClientID), } }