Documentation
¶
Overview ¶
Package cli is the leaf of steerloop: command dispatch, the environment contract and exit codes. It imports nothing from steerloop, so every other package can import it without a cycle.
Index ¶
Constants ¶
View Source
const ( ExitOK = 0 ExitError = 1 ExitUsage = 2 ExitMaxIterations = 3 ExitTimeout = 4 ExitAwaitingHuman = 5 ExitStopped = 130 )
Exit codes.
View Source
const Usage = `` /* 612-byte string literal not displayed */
Usage is the top-level help: every command, one line each.
Variables ¶
This section is empty.
Functions ¶
func ExitCodeFor ¶
func ExitCodeFor(reason event.DoneReason) int
ExitCodeFor maps how a run ended to the process exit code.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
App dispatches `steerloop <command>` to the Command registered for it. main supplies the commands, so this package never imports them.
Click to show internal directories.
Click to hide internal directories.