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.
This commit is contained in:
Cuong Manh Le
2025-07-30 17:03:39 +07:00
committed by Cuong Manh Le
parent bfe6060df1
commit 8959319382
+1 -1
View File
@@ -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)