3dabea0fc2 added some docs with inconsistent usage docs.
This fixes them, and adds a test.
It also adds some other tests and fixes other verb tense
inconsistencies.
Updates tailscale/corp#25278
Change-Id: I94c2a8940791bddd7c35c1c3d5fb791a317370c2
Signed-off-by: Brad Fitzpatrick <bradfitz@tailscale.com>
ShortHelp:"Manages the system extension for macOS (Standalone variant)",
ShortHelp:"Manage the system extension for macOS (Standalone variant)",
LongHelp:"The sysext set of commands provides a way to activate, deactivate, or manage the state of the Tailscale system extension on macOS. "+
LongHelp:"The sysext set of commands provides a way to activate, deactivate, or manage the state of the Tailscale system extension on macOS. "+
"This is only relevant if you are running the Standalone variant of the Tailscale client for macOS. "+
"This is only relevant if you are running the Standalone variant of the Tailscale client for macOS. "+
"To access more detailed information about system extensions installed on this Mac, run 'systemextensionsctl list'.",
"To access more detailed information about system extensions installed on this Mac, run 'systemextensionsctl list'.",
Subcommands:[]*ffcli.Command{
Subcommands:[]*ffcli.Command{
{
{
Name:"activate",
Name:"activate",
ShortUsage:"tailscale sysext activate",
ShortUsage:"tailscale configure sysext activate",
ShortHelp:"Register the Tailscale system extension with macOS.",
ShortHelp:"Register the Tailscale system extension with macOS.",
LongHelp:"This command registers the Tailscale system extension with macOS. To run Tailscale, you'll also need to install the VPN configuration separately (run `tailscale configure vpn-config install`). After running this command, you need to approve the extension in System Settings > Login Items and Extensions > Network Extensions.",
LongHelp:"This command registers the Tailscale system extension with macOS. To run Tailscale, you'll also need to install the VPN configuration separately (run `tailscale configure vpn-config install`). After running this command, you need to approve the extension in System Settings > Login Items and Extensions > Network Extensions.",
ShortHelp:"Deactivate the Tailscale system extension on macOS",
ShortHelp:"Deactivate the Tailscale system extension on macOS",
LongHelp:"This command deactivates the Tailscale system extension on macOS. To completely remove Tailscale, you'll also need to delete the VPN configuration separately (use `tailscale configure vpn-config uninstall`).",
LongHelp:"This command deactivates the Tailscale system extension on macOS. To completely remove Tailscale, you'll also need to delete the VPN configuration separately (use `tailscale configure vpn-config uninstall`).",
Exec:requiresStandalone,
Exec:requiresStandalone,
},
},
{
{
Name:"status",
Name:"status",
ShortUsage:"tailscale sysext status",
ShortUsage:"tailscale configure sysext status",
ShortHelp:"Print the enablement status of the Tailscale system extension",
ShortHelp:"Print the enablement status of the Tailscale system extension",
LongHelp:"This command prints the enablement status of the Tailscale system extension. If the extension is not enabled, run `tailscale sysext activate` to enable it.",
LongHelp:"This command prints the enablement status of the Tailscale system extension. If the extension is not enabled, run `tailscale sysext activate` to enable it.",
ShortHelp:"Write the Tailscale VPN configuration to the macOS settings",
ShortHelp:"Write the Tailscale VPN configuration to the macOS settings",
LongHelp:"This command writes the Tailscale VPN configuration to the macOS settings. This is the entry that appears in System Settings > VPN. If you are running the Standalone variant of the client, you'll also need to install the system extension separately (run `tailscale configure sysext activate`).",
LongHelp:"This command writes the Tailscale VPN configuration to the macOS settings. This is the entry that appears in System Settings > VPN. If you are running the Standalone variant of the client, you'll also need to install the system extension separately (run `tailscale configure sysext activate`).",
ShortHelp:"Delete the Tailscale VPN configuration from the macOS settings",
ShortHelp:"Delete the Tailscale VPN configuration from the macOS settings",
LongHelp:"This command removes the Tailscale VPN configuration from the macOS settings. This is the entry that appears in System Settings > VPN. If you are running the Standalone variant of the client, you'll also need to deactivate the system extension separately (run `tailscale configure sysext deactivate`).",
LongHelp:"This command removes the Tailscale VPN configuration from the macOS settings. This is the entry that appears in System Settings > VPN. If you are running the Standalone variant of the client, you'll also need to deactivate the system extension separately (run `tailscale configure sysext deactivate`).",