From 6971d392b7603f2761b33e4a6820c3ff8ea80aea Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Wed, 30 Jul 2025 17:03:39 +0700 Subject: [PATCH] fix: reorder service command additions for consistency Move uninstallCmd.AddCommand() to match the order of ValidArgs array definition, ensuring the command addition order aligns with the valid arguments list order. --- cmd/cli/commands_service.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/cli/commands_service.go b/cmd/cli/commands_service.go index 1e56a73..51a8da7 100644 --- a/cmd/cli/commands_service.go +++ b/cmd/cli/commands_service.go @@ -230,12 +230,12 @@ NOTE: Uninstalling will set DNS to values provided by DHCP.`, serviceCmd.ValidArgs[5] = uninstallCmd.Use serviceCmd.ValidArgs[6] = interfacesCmd.Use - serviceCmd.AddCommand(uninstallCmd) serviceCmd.AddCommand(startCmd) serviceCmd.AddCommand(stopCmd) serviceCmd.AddCommand(restartCmd) serviceCmd.AddCommand(reloadCmd) serviceCmd.AddCommand(statusCmd) + serviceCmd.AddCommand(uninstallCmd) serviceCmd.AddCommand(interfacesCmd) rootCmd.AddCommand(serviceCmd)