diff --git a/cli/cmd/root.go b/cli/cmd/root.go index 7ca21ae1c..546f84f01 100644 --- a/cli/cmd/root.go +++ b/cli/cmd/root.go @@ -12,6 +12,7 @@ import ( // Execute starts the CLI. func Execute() error { + cobra.EnableCommandSorting = false rootCmd := NewRootCmd() ctx, cancel := signalContext(context.Background(), os.Interrupt) defer cancel() diff --git a/cli/main.go b/cli/main.go index 924c33a43..4d855751c 100644 --- a/cli/main.go +++ b/cli/main.go @@ -4,11 +4,9 @@ import ( "os" "github.com/edgelesssys/constellation/cli/cmd" - "github.com/spf13/cobra" ) func main() { - cobra.EnableCommandSorting = false if err := cmd.Execute(); err != nil { os.Exit(1) }