Documentation
¶
Overview ¶
Package cli is the built-in command line: its commands and the terminal output they write. It is the only package that writes to the terminal.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommandLine ¶
type CommandLine struct {
Log logger.Config `embed:"" prefix:"log-"`
Config kong.ConfigFlag `placeholder:"FILE" help:"Load flag values from a TOML file. Command-line flags take precedence."`
// A deployment's own SPECTRE_VERSION must not make every command exit.
Version kong.VersionFlag `env:"-" help:"Print the version and exit."`
Supervise superviseCommand `cmd:"" help:"Supervise a candidate and a reference behind the embedded proxies, splitting resources between them."`
Serve serveCommand `cmd:"" help:"Run the SPECTRE server, which mirrors report their quarantines to."`
Gen genCommand `cmd:"" help:"Generate TypeScript schema declarations and the script API."`
Divergences divergencesCommand `cmd:"" help:"List or clear the divergences that mirrors reported to the SPECTRE server."`
State stateCommand `cmd:"" help:"Describe a service's migration state."`
Init initCommand `cmd:"" help:"Set a service checkout up for a SPECTRE migration from a template."`
}
CommandLine is the built-in command line. Extensions add to it, so custom binaries never copy it.
Click to show internal directories.
Click to hide internal directories.