From 0043ea45ad2b358f6ff6e3a69000fd05d59ceb59 Mon Sep 17 00:00:00 2001 From: "Jorge L. Fatta" Date: Tue, 26 Jan 2021 20:06:59 -0300 Subject: [PATCH 1/2] feat: sort cmds by relevance --- internal/cli/cli.go | 2 ++ internal/cli/root.go | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/internal/cli/cli.go b/internal/cli/cli.go index 8f331bfe9..733a45caa 100644 --- a/internal/cli/cli.go +++ b/internal/cli/cli.go @@ -170,6 +170,8 @@ func (c *cli) init() error { } c.renderer.Tenant = c.tenant + cobra.EnableCommandSorting = false + }) // Determine what the desired output format is. diff --git a/internal/cli/root.go b/internal/cli/root.go index 5d30cff5d..bb0e2cbb2 100644 --- a/internal/cli/root.go +++ b/internal/cli/root.go @@ -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. From 01a3507200dd5ee0e3843778bef5bfefa9aa5493 Mon Sep 17 00:00:00 2001 From: "Jorge L. Fatta" Date: Tue, 26 Jan 2021 20:14:38 -0300 Subject: [PATCH 2/2] fix: consistency --- internal/cli/try_login.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cli/try_login.go b/internal/cli/try_login.go index 350ac8271..1ce26d58d 100644 --- a/internal/cli/try_login.go +++ b/internal/cli/try_login.go @@ -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. `,