Documentation
¶
Overview ¶
Package cli defines the plugyard command line.
Index ¶
Constants ¶
View Source
const ( ExitOK = 0 ExitFailure = 1 // runtime failure ExitUsage = 2 // usage or validation error )
Exit codes, as defined in docs/SPEC.md.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type UsageError ¶
type UsageError struct{ Err error }
UsageError marks an error raised by a command as a usage or validation error, so that Run exits with ExitUsage instead of ExitFailure.
func (*UsageError) Error ¶
func (e *UsageError) Error() string
func (*UsageError) Unwrap ¶
func (e *UsageError) Unwrap() error
Click to show internal directories.
Click to hide internal directories.