mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
cli: sort cmds by workflow instead of alphabetically
This commit is contained in:
parent
51d8bfddbe
commit
8d73aab0ce
@ -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())
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user