Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cmd/tailscale/cli: only exit silently if len(args) == 0
This amends commit b7e4805. That commit broke all documented ways of starting Tailscale on gokrazy: https://gokrazy.org/packages/tailscale/ — both Option A (tailscale up) and Option B (tailscale up --auth-key) rely on the tailscale CLI working. I verified that the tailscale CLI just prints it help when started without arguments, i.e. it does not stay running and is not restarted. I verified that the tailscale CLI successfully exits when started with tailscale up --auth-key, regardless of whether the node has joined the tailnet yet or not. I verified that the tailscale CLI successfully waits and exits when started with tailscale up, as expected. fixes gokrazy/gokrazy#286 Signed-off-by: Michael Stapelberg <[email protected]>
- Loading branch information