From d9a051ca0eeb34f33d89aded229feb0cbc163546 Mon Sep 17 00:00:00 2001 From: Rita Zerrizuela Date: Sun, 21 Feb 2021 22:49:03 -0300 Subject: [PATCH 1/4] Rename quickstart command --- internal/cli/{quickstart.go => quickstarts.go} | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) rename internal/cli/{quickstart.go => quickstarts.go} (97%) diff --git a/internal/cli/quickstart.go b/internal/cli/quickstarts.go similarity index 97% rename from internal/cli/quickstart.go rename to internal/cli/quickstarts.go index c1f1377d8..103c2b8e4 100644 --- a/internal/cli/quickstart.go +++ b/internal/cli/quickstarts.go @@ -20,18 +20,18 @@ import ( func quickstartCmd(cli *cli) *cobra.Command { cmd := &cobra.Command{ - Use: "quickstart", + Use: "quickstarts", Short: "Quickstart support for getting bootstrapped", Aliases: []string{"qs"}, } cmd.SetUsageTemplate(resourceUsageTemplate()) - cmd.AddCommand(quickstartDownloadCmd(cli)) + cmd.AddCommand(downloadQuickstart(cli)) return cmd } -func quickstartDownloadCmd(cli *cli) *cobra.Command { +func downloadQuickstart(cli *cli) *cobra.Command { var flags struct { ClientID string Type string From faffdd880d90f1625e591c86b72cc0465158c852 Mon Sep 17 00:00:00 2001 From: Rita Zerrizuela Date: Sun, 21 Feb 2021 22:53:00 -0300 Subject: [PATCH 2/4] Rename command function --- internal/cli/quickstarts.go | 2 +- internal/cli/root.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/cli/quickstarts.go b/internal/cli/quickstarts.go index 103c2b8e4..f4127a935 100644 --- a/internal/cli/quickstarts.go +++ b/internal/cli/quickstarts.go @@ -18,7 +18,7 @@ import ( "gopkg.in/auth0.v5/management" ) -func quickstartCmd(cli *cli) *cobra.Command { +func quickstartsCmd(cli *cli) *cobra.Command { cmd := &cobra.Command{ Use: "quickstarts", Short: "Quickstart support for getting bootstrapped", diff --git a/internal/cli/root.go b/internal/cli/root.go index 9b0f1960f..90b28f6d5 100644 --- a/internal/cli/root.go +++ b/internal/cli/root.go @@ -59,7 +59,7 @@ func Execute() { // order of the comamnds here matters // so add new commands in a place that reflect its relevance or relation with other commands: rootCmd.AddCommand(loginCmd(cli)) - rootCmd.AddCommand(quickstartCmd(cli)) + rootCmd.AddCommand(quickstartsCmd(cli)) rootCmd.AddCommand(appsCmd(cli)) rootCmd.AddCommand(apisCmd(cli)) rootCmd.AddCommand(testCmd(cli)) From 808653cec59c4a2b8973921ee4e96ede0ca58f12 Mon Sep 17 00:00:00 2001 From: Rita Zerrizuela Date: Mon, 22 Feb 2021 09:25:30 -0300 Subject: [PATCH 3/4] Update comand example --- internal/cli/quickstarts.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cli/quickstarts.go b/internal/cli/quickstarts.go index f4127a935..ed7928555 100644 --- a/internal/cli/quickstarts.go +++ b/internal/cli/quickstarts.go @@ -41,7 +41,7 @@ func downloadQuickstart(cli *cli) *cobra.Command { cmd := &cobra.Command{ Use: "download", Short: "Download a specific type and tech stack for quick starts", - Long: `auth0 quickstart download --type --client-id --stack `, + Long: `auth0 quickstarts download --type --client-id --stack `, RunE: func(cmd *cobra.Command, args []string) error { client, err := cli.api.Client.Read(flags.ClientID) if err != nil { From 061d3e428bdc03edcdd474543db5db2022ded8af Mon Sep 17 00:00:00 2001 From: Rita Zerrizuela Date: Mon, 22 Feb 2021 14:49:18 -0300 Subject: [PATCH 4/4] Swich order of apps and quickstarts commands --- internal/cli/root.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/cli/root.go b/internal/cli/root.go index 90b28f6d5..a7d0f4a68 100644 --- a/internal/cli/root.go +++ b/internal/cli/root.go @@ -59,8 +59,8 @@ func Execute() { // order of the comamnds here matters // so add new commands in a place that reflect its relevance or relation with other commands: rootCmd.AddCommand(loginCmd(cli)) - rootCmd.AddCommand(quickstartsCmd(cli)) rootCmd.AddCommand(appsCmd(cli)) + rootCmd.AddCommand(quickstartsCmd(cli)) rootCmd.AddCommand(apisCmd(cli)) rootCmd.AddCommand(testCmd(cli)) rootCmd.AddCommand(logsCmd(cli))