From 30981fb48cc77a9b09b7dc016065fadb876b3dfd Mon Sep 17 00:00:00 2001 From: morganelle Date: Fri, 19 Feb 2021 17:59:40 -0800 Subject: [PATCH] update login checking logic --- internal/cli/root.go | 2 +- internal/cli/test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/cli/root.go b/internal/cli/root.go index 551fdd7f8..ba913b4b9 100644 --- a/internal/cli/root.go +++ b/internal/cli/root.go @@ -29,7 +29,7 @@ func Execute() { PersistentPreRunE: func(cmd *cobra.Command, args []string) error { // If the user is trying to login, no need to go // through setup. - if cmd.Use == "login" { + if cmd.Use == "login" && cmd.Parent().Use == "auth0" { return nil } diff --git a/internal/cli/test.go b/internal/cli/test.go index 7c021a627..53d8e425d 100644 --- a/internal/cli/test.go +++ b/internal/cli/test.go @@ -26,9 +26,9 @@ func testLoginCmd(cli *cli) *cobra.Command { var connectionName string cmd := &cobra.Command{ - Use: "login-box", + Use: "login", Short: "Try out your universal login box", - Long: `auth0 test login-box + Long: `auth0 test login Launch a browser to try out your universal login box for the given client. `, RunE: func(cmd *cobra.Command, args []string) error {