From b94e78e121d0dfa852607cdcc3f49af6eff5d942 Mon Sep 17 00:00:00 2001 From: "Jorge L. Fatta" Date: Mon, 15 Mar 2021 10:26:16 -0300 Subject: [PATCH] fix: app row order --- internal/cli/apps_test.go | 2 +- internal/display/apps.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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), } }