diff --git a/internal/cli/quickstart.go b/internal/cli/quickstarts.go similarity index 94% rename from internal/cli/quickstart.go rename to internal/cli/quickstarts.go index c1f1377d8..ed7928555 100644 --- a/internal/cli/quickstart.go +++ b/internal/cli/quickstarts.go @@ -18,20 +18,20 @@ import ( "gopkg.in/auth0.v5/management" ) -func quickstartCmd(cli *cli) *cobra.Command { +func quickstartsCmd(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 @@ -41,7 +41,7 @@ func quickstartDownloadCmd(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 { diff --git a/internal/cli/root.go b/internal/cli/root.go index 9b0f1960f..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(quickstartCmd(cli)) rootCmd.AddCommand(appsCmd(cli)) + rootCmd.AddCommand(quickstartsCmd(cli)) rootCmd.AddCommand(apisCmd(cli)) rootCmd.AddCommand(testCmd(cli)) rootCmd.AddCommand(logsCmd(cli))