mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
Move command sorting setting into cli/cmd
This commit is contained in:
parent
67b25d2771
commit
4912ab0195
@ -12,6 +12,7 @@ import (
|
|||||||
|
|
||||||
// Execute starts the CLI.
|
// Execute starts the CLI.
|
||||||
func Execute() error {
|
func Execute() error {
|
||||||
|
cobra.EnableCommandSorting = false
|
||||||
rootCmd := NewRootCmd()
|
rootCmd := NewRootCmd()
|
||||||
ctx, cancel := signalContext(context.Background(), os.Interrupt)
|
ctx, cancel := signalContext(context.Background(), os.Interrupt)
|
||||||
defer cancel()
|
defer cancel()
|
||||||
|
@ -4,11 +4,9 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/edgelesssys/constellation/cli/cmd"
|
"github.com/edgelesssys/constellation/cli/cmd"
|
||||||
"github.com/spf13/cobra"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
cobra.EnableCommandSorting = false
|
|
||||||
if err := cmd.Execute(); err != nil {
|
if err := cmd.Execute(); err != nil {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user