cmd/tailscale: hide share subcommand

Fixes #1115

Signed-off-by: Percy Wegmann <percy@tailscale.com>
This commit is contained in:
Percy Wegmann
2024-02-12 13:38:44 -06:00
committed by Percy Wegmann
parent 58b8f78e7e
commit d0ef3a25df
2 changed files with 8 additions and 7 deletions
+2 -1
View File
@@ -125,7 +125,6 @@ change in the future.
versionCmd,
webCmd,
fileCmd,
shareCmd,
bugReportCmd,
certCmd,
netlockCmd,
@@ -148,6 +147,8 @@ change in the future.
switch {
case slices.Contains(args, "debug"):
rootCmd.Subcommands = append(rootCmd.Subcommands, debugCmd)
case slices.Contains(args, "share"):
rootCmd.Subcommands = append(rootCmd.Subcommands, shareCmd)
}
if runtime.GOOS == "linux" && distro.Get() == distro.Synology {
rootCmd.Subcommands = append(rootCmd.Subcommands, configureHostCmd)