Skip to content

Commit

Permalink
Merge branch 'CLI-62' of github.com:auth0/auth0-cli into CLI-62
Browse files Browse the repository at this point in the history
  • Loading branch information
bright-poku committed Mar 15, 2021
2 parents fd9fa38 + d61d645 commit a48e6f0
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 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
5 changes: 4 additions & 1 deletion internal/prompt/prompt.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,12 @@ func BoolInput(name string, message string, help string, required bool) *survey.
}

func SelectInput(name string, message string, help string, options []string, required bool) *survey.Question {
// force options "page" size to full,
// since there's not visual clue about extra options.
pageSize := len(options)
input := &survey.Question{
Name: name,
Prompt: &survey.Select{Message: message, Help: help, Options: options},
Prompt: &survey.Select{Message: message, Help: help, Options: options, PageSize: pageSize},
}

if required {
Expand Down

0 comments on commit a48e6f0

Please sign in to comment.