From 4912ab019594281c20518447155fd99c5d441ffa Mon Sep 17 00:00:00 2001 From: katexochen <49727155+katexochen@users.noreply.github.com> Date: Tue, 7 Jun 2022 11:13:34 +0200 Subject: [PATCH] Move command sorting setting into cli/cmd --- cli/cmd/root.go | 1 + cli/main.go | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) 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) }