Documentation
¶
Overview ¶
Package cli is Corbie's command line. Everything it does to a run it does through the client package, so one act gives one answer in one set of words however it is asked for.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Commands []Command
Commands is the one table of commands.
var Version = "0.1.0"
Version is which Corbie this is.
Functions ¶
func Main ¶
Main runs the command line and gives its exit status: 0 for success, 2 for a mistake in how the command was written, 1 for failure.
Types ¶
type Checked ¶
type Checked struct {
OK bool `json:"ok"`
Legs []Leg `json:"legs"`
// Run is the check's run, when it did not go as it should.
Run *client.Run `json:"run,omitzero"`
}
A Checked is what a check found.
type Command ¶
type Command struct {
Name string // as it is typed: "submit", "controller enrol"
Usage string // what follows the name
Summary string // one line
Help string // the rest of its page
// Stays says the command stays until a run ends, or until stopped.
Stays bool
// contains filtered or unexported fields
}
A Command is one command of the binary. The commands, their help, the manual's pages about them and the names by which a model is allowed to run them all come from the one table of these.