From ac7b4d62fdc6ff589d894cc2fbac3e47c9c674c6 Mon Sep 17 00:00:00 2001 From: Chris Palmer Date: Wed, 6 Sep 2023 10:28:04 -0700 Subject: [PATCH] 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 --- cmd/tailscale/cli/cli.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/tailscale/cli/cli.go b/cmd/tailscale/cli/cli.go index 74d02800b..db3f2fb05 100644 --- a/cmd/tailscale/cli/cli.go +++ b/cmd/tailscale/cli/cli.go @@ -130,6 +130,7 @@ change in the future. netlockCmd, licensesCmd, exitNodeCmd, + updateCmd, }, FlagSet: rootfs, Exec: func(context.Context, []string) error { return flag.ErrHelp }, @@ -145,8 +146,6 @@ change in the future. switch { case slices.Contains(args, "debug"): 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 { rootCmd.Subcommands = append(rootCmd.Subcommands, configureHostCmd)