cli: sort cmds by workflow instead of alphabetically

This commit is contained in:
Thomas Tendyck 2022-04-28 10:24:57 +02:00 committed by Thomas Tendyck
parent 51d8bfddbe
commit 8d73aab0ce

View File

@ -51,14 +51,15 @@ func signalContext(ctx context.Context, sig os.Signal) (context.Context, context
}
func init() {
cobra.EnableCommandSorting = false
// Set output of cmd.Print to stdout.
rootCmd.SetOut(os.Stdout)
// Disable --no-description flag for completion command.
rootCmd.CompletionOptions.DisableNoDescFlag = true
rootCmd.PersistentFlags().String("dev-config", "", "Set this flag to create the Constellation using settings from a development config.")
rootCmd.AddCommand(newVersionCmd())
rootCmd.AddCommand(newCreateCmd())
rootCmd.AddCommand(newInitCmd())
rootCmd.AddCommand(newTerminateCmd())
rootCmd.AddCommand(newVerifyCmd())
rootCmd.AddCommand(newTerminateCmd())
rootCmd.AddCommand(newVersionCmd())
}