Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: sort cmds by relevance [A0CLI-46] #57

Merged
merged 2 commits into from
Jan 26, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,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 @@ -53,11 +53,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