From 776253d266e674b37eceb9d9f2c6feccaa3a9a5c Mon Sep 17 00:00:00 2001 From: Bryan McNulty Date: Wed, 12 Mar 2025 08:09:04 -0500 Subject: Disable cobra command sorting --- cmd/root.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cmd') 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") -- cgit v1.2.3