Skip to content

Commit

Permalink
feat: sort cmds by relevance [A0CLI-46] (#57)
Browse files Browse the repository at this point in the history
* feat: sort cmds by relevance

* fix: consistency
  • Loading branch information
jfatta authored Jan 26, 2021
1 parent 1a9e75c commit 98fa733
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,8 @@ func (c *cli) init() error {
}
c.renderer.Tenant = c.tenant

cobra.EnableCommandSorting = false

})

// Determine what the desired output format is.
Expand Down
4 changes: 2 additions & 2 deletions internal/cli/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@ func Execute() {
rootCmd.AddCommand(loginCmd(cli))
rootCmd.AddCommand(clientsCmd(cli))
rootCmd.AddCommand(apisCmd(cli))
rootCmd.AddCommand(tryLoginCmd(cli))
rootCmd.AddCommand(logsCmd(cli))
rootCmd.AddCommand(actionsCmd(cli))
rootCmd.AddCommand(rulesCmd(cli))
rootCmd.AddCommand(actionsCmd(cli))
rootCmd.AddCommand(connectionsCmd(cli))
rootCmd.AddCommand(tryLoginCmd(cli))
rootCmd.AddCommand(completionCmd(cli))

// TODO(cyx): backport this later on using latest auth0/v5.
Expand Down
2 changes: 1 addition & 1 deletion internal/cli/try_login.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ func tryLoginCmd(cli *cli) *cobra.Command {

cmd := &cobra.Command{
Use: "try-login",
Short: "Try out your universal login box",
Short: "try out your universal login box.",
Long: `$ auth0 try-login
Launch a browser to try out your universal login box for the given client.
`,
Expand Down

0 comments on commit 98fa733

Please sign in to comment.