Documentation
¶
Overview ¶
Package cli assembles the weg command tree.
Index ¶
Constants ¶
View Source
const ( // ExitOK indicates success. ExitOK = 0 // ExitError indicates the command ran but failed. ExitError = 1 // ExitUsage indicates the command line itself was invalid. ExitUsage = 2 // ExitCancelled indicates the command was interrupted, following the shell // convention of 128 plus the signal number for SIGINT. ExitCancelled = 130 )
Exit codes returned by Execute. They follow the convention that 1 is a runtime failure and 2 is a usage error, so scripts can tell "the server said no" apart from "you typed it wrong".
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.