mirror of https://github.com/tailscale/tailscale/
util/prompt: add a default and take default in non-interactive cases
The Tailscale CLI is the primary configuration interface and as such it is used in scripts, container setups, and many other places that do not have a terminal available and should not be made to respond to prompts. The default is set to false where the "risky" API is being used by the CLI and true otherwise, this means that the `--yes` flags are only required under interactive runs and scripts do not need to be concerned with prompts or extra flags. Updates #19445 Signed-off-by: James Tucker <james@tailscale.com>pull/17365/head
parent
442a3a779d
commit
b9cdef18c0
Loading…
Reference in New Issue