Documentation
¶
Overview ¶
Package cli is the headwire command line shared by every program: the headwire binary adds run, and Headwire.app adds its profile and GUI verbs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
func LoadConfig( args []string, stderr io.Writer, usage func(io.Writer), ) (*config.Config, string, int)
LoadConfig loads the configuration a command's optional NAME or FILE argument selects. It returns a nil config with the exit code to use when the command should not run.
Types ¶
type Command ¶
type Command struct {
Args string // after the name in its usage line, holding the whole argument vocabulary
Run RunFunc
}
Command is one entry of the command table. A nil Run is a command the program dispatches itself before calling Run, so reaching it is a usage error.
func ConfigCommand ¶
ConfigCommand is a command that loads its configuration with LoadConfig.
Click to show internal directories.
Click to hide internal directories.