From 59879e577062845a0502038a0b27a8a04d4c44b0 Mon Sep 17 00:00:00 2001 From: shayne Date: Mon, 3 Apr 2023 10:09:04 -0400 Subject: [PATCH] cmd/tailscale/cli: make serve and funnel visible in list (#7737) --- cmd/tailscale/cli/cli.go | 6 ++---- cmd/tailscale/cli/funnel.go | 2 +- cmd/tailscale/cli/serve.go | 2 +- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/cmd/tailscale/cli/cli.go b/cmd/tailscale/cli/cli.go index d6ab7b710..ce41e5965 100644 --- a/cmd/tailscale/cli/cli.go +++ b/cmd/tailscale/cli/cli.go @@ -120,6 +120,8 @@ func Run(args []string) (err error) { pingCmd, ncCmd, sshCmd, + funnelCmd, + serveCmd, versionCmd, webCmd, fileCmd, @@ -147,10 +149,6 @@ func Run(args []string) (err error) { switch { case slices.Contains(args, "debug"): rootCmd.Subcommands = append(rootCmd.Subcommands, debugCmd) - case slices.Contains(args, "funnel"): - rootCmd.Subcommands = append(rootCmd.Subcommands, funnelCmd) - case slices.Contains(args, "serve"): - rootCmd.Subcommands = append(rootCmd.Subcommands, serveCmd) case slices.Contains(args, "update"): rootCmd.Subcommands = append(rootCmd.Subcommands, updateCmd) } diff --git a/cmd/tailscale/cli/funnel.go b/cmd/tailscale/cli/funnel.go index ad89d9078..8e3e80004 100644 --- a/cmd/tailscale/cli/funnel.go +++ b/cmd/tailscale/cli/funnel.go @@ -29,7 +29,7 @@ func newFunnelCommand(e *serveEnv) *ffcli.Command { return &ffcli.Command{ Name: "funnel", - ShortHelp: "[BETA] turn Tailscale Funnel on or off", + ShortHelp: "Turn on/off Funnel service", ShortUsage: strings.TrimSpace(` funnel {on|off} funnel status [--json] diff --git a/cmd/tailscale/cli/serve.go b/cmd/tailscale/cli/serve.go index acd073679..244ce03d1 100644 --- a/cmd/tailscale/cli/serve.go +++ b/cmd/tailscale/cli/serve.go @@ -33,7 +33,7 @@ func newServeCommand(e *serveEnv) *ffcli.Command { return &ffcli.Command{ Name: "serve", - ShortHelp: "[BETA] Serve from your Tailscale node", + ShortHelp: "Serve content and local servers", ShortUsage: strings.TrimSpace(` serve https: [off] serve tcp: tcp://localhost: [off]