From ea98a59aba1711cf7c95f76029dcbb99cab25c21 Mon Sep 17 00:00:00 2001 From: Cuong Manh Le Date: Wed, 30 Jul 2025 17:24:42 +0700 Subject: [PATCH] fix: add missing flags to uninstall command - Ensures uninstall command has same flag functionality as stop command - Fixes inconsistency where uninstallCmdAlias had flags but main uninstallCmd did not --- cmd/cli/commands_service.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/cli/commands_service.go b/cmd/cli/commands_service.go index 51a8da7..19f928f 100644 --- a/cmd/cli/commands_service.go +++ b/cmd/cli/commands_service.go @@ -139,6 +139,10 @@ NOTE: Uninstalling will set DNS to values provided by DHCP.`, }, RunE: sc.Uninstall, } + uninstallCmd.Flags().StringVarP(&iface, "iface", "", "", `Reset DNS setting for iface, "auto" means the default interface gateway`) + uninstallCmd.Flags().Int64VarP(&deactivationPin, "pin", "", defaultDeactivationPin, `Pin code for stopping ctrld`) + _ = uninstallCmd.Flags().MarkHidden("pin") + uninstallCmd.Flags().BoolVarP(&cleanup, "cleanup", "", false, `Removing ctrld binary and config files`) // Interfaces command - use the existing InitInterfacesCmd function interfacesCmd := InitInterfacesCmd(rootCmd)