Documentation ¶
Overview ¶
Package cli contains the cmd/tailscale CLI code in a package that can be included in other wrapper binaries such as the Mac and Windows clients.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Fatalf func(format string, a ...any)
Fatalf, if non-nil, is used instead of log.Fatalf.
View Source
var Stderr io.Writer = os.Stderr
View Source
var Stdout io.Writer = os.Stdout
Functions ¶
func ActLikeCLI ¶
func ActLikeCLI() bool
ActLikeCLI reports whether a GUI application should act like the CLI based on os.Args, GOOS, the context the process is running in (pty, parent PID), etc.
func CleanUpArgs ¶ added in v1.22.0
CleanUpArgs rewrites command line arguments for simplicity and backwards compatibility. In particular, it rewrites --authkey to --auth-key.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.