cli

package
v1.76.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2024 License: BSD-3-Clause Imports: 109 Imported by: 6

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 CleanUpArgs added in v1.22.0

func CleanUpArgs(args []string) []string

CleanUpArgs rewrites command line arguments for simplicity and backwards compatibility. In particular, it rewrites --authkey to --auth-key.

func Run

func Run(args []string) (err error)

Run runs the CLI. The args do not include the binary name.

Types

This section is empty.

Directories

Path Synopsis
Package ffcomplete provides shell tab-completion of subcommands, flags and arguments for Go programs written with ffcli.
Package ffcomplete provides shell tab-completion of subcommands, flags and arguments for Go programs written with ffcli.
internal
Package internal contains internal code for the ffcomplete package.
Package internal contains internal code for the ffcomplete package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL