cmd/tailscale/cli: make update visible in list (#8662)
This also makes "HIDDEN: " work (requires the custom UsageFunc). Updates #6995 Signed-off-by: Chris Palmer <cpalmer@tailscale.com>
This commit is contained in:
parent
d413dd7ee5
commit
ac7b4d62fd
|
@ -130,6 +130,7 @@ change in the future.
|
||||||
netlockCmd,
|
netlockCmd,
|
||||||
licensesCmd,
|
licensesCmd,
|
||||||
exitNodeCmd,
|
exitNodeCmd,
|
||||||
|
updateCmd,
|
||||||
},
|
},
|
||||||
FlagSet: rootfs,
|
FlagSet: rootfs,
|
||||||
Exec: func(context.Context, []string) error { return flag.ErrHelp },
|
Exec: func(context.Context, []string) error { return flag.ErrHelp },
|
||||||
|
@ -145,8 +146,6 @@ change in the future.
|
||||||
switch {
|
switch {
|
||||||
case slices.Contains(args, "debug"):
|
case slices.Contains(args, "debug"):
|
||||||
rootCmd.Subcommands = append(rootCmd.Subcommands, debugCmd)
|
rootCmd.Subcommands = append(rootCmd.Subcommands, debugCmd)
|
||||||
case slices.Contains(args, "update"):
|
|
||||||
rootCmd.Subcommands = append(rootCmd.Subcommands, updateCmd)
|
|
||||||
}
|
}
|
||||||
if runtime.GOOS == "linux" && distro.Get() == distro.Synology {
|
if runtime.GOOS == "linux" && distro.Get() == distro.Synology {
|
||||||
rootCmd.Subcommands = append(rootCmd.Subcommands, configureHostCmd)
|
rootCmd.Subcommands = append(rootCmd.Subcommands, configureHostCmd)
|
||||||
|
|
Loading…
Reference in New Issue