Documentation
¶
Overview ¶
Package cmd is the `atmee` command line.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Version = "dev"
Version is set at build time (-ldflags "-X .../cmd.Version=..."); without that, it is the module version `go install ...@vX.Y.Z` records.
Functions ¶
Types ¶
type CommandFunc ¶
CommandFunc builds one command of a build.
type Variant ¶
type Variant struct {
Name string // the command's name, in help, usage and hints
BaseURL string
BaseURLEnv string // overrides BaseURL
HomeFolder string // under the home directory
HomeEnv string // overrides HomeFolder
APIKeyEnv string
// Extra are commands only this build has, added beside the shared ones.
Extra []CommandFunc
}
Variant is one build of this CLI: what it is called, the API it uses by default and where its login lives, so that two builds can share a machine. Each has its own environment variables and reads no other build's, so a shell set up for one can't send its server or key to the other.
Click to show internal directories.
Click to hide internal directories.