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 send their heartbeats to."`
Gen genCommand `cmd:"" help:"Generate TypeScript schema declarations and the script API."`
Status statusCommand `cmd:"" help:"List the mirrors reporting to the SPECTRE server and the divergences they reported, or clear divergences."`
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.