Skip to content

Commit

Permalink
fix: app row order
Browse files Browse the repository at this point in the history
  • Loading branch information
jfatta committed Mar 15, 2021
1 parent 398e0e2 commit b94e78e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion internal/cli/apps_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"},
},
)
}
4 changes: 2 additions & 2 deletions internal/display/apps.go
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
}

Expand Down

0 comments on commit b94e78e

Please sign in to comment.