diff options
author | Bryan McNulty <bryanmcnulty@protonmail.com> | 2025-03-12 08:09:04 -0500 |
---|---|---|
committer | Bryan McNulty <bryanmcnulty@protonmail.com> | 2025-03-12 08:09:04 -0500 |
commit | 776253d266e674b37eceb9d9f2c6feccaa3a9a5c (patch) | |
tree | 48b97784659d67bd927f22354ffc8ae8e3c9ebfa /cmd | |
parent | f04fb03707cb10e637bda891621067549174e39f (diff) | |
download | goexec-776253d266e674b37eceb9d9f2c6feccaa3a9a5c.tar.gz goexec-776253d266e674b37eceb9d9f2c6feccaa3a9a5c.zip |
Disable cobra command sorting
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/root.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cmd/root.go b/cmd/root.go index 3f17253..116ed21 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -69,6 +69,8 @@ func needsTarget(proto string) func(cmd *cobra.Command, args []string) error { func init() { ctx = context.Background() + cobra.EnableCommandSorting = false + rootCmd.InitDefaultVersionFlag() rootCmd.InitDefaultHelpCmd() rootCmd.PersistentFlags().BoolVar(&debug, "debug", false, "Enable debug logging") |