Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Err = log.New(os.Stderr, "", 0)
View Source
var ErrParseArgs = errors.New("could not parse arguments")
View Source
var Out = log.New(os.Stdout, "", 0)
Functions ¶
This section is empty.
Types ¶
type Environment ¶
type Environment struct { WorkingDir string Args []string Env []string // contains filtered or unexported fields }
func (*Environment) GetDefaultContext ¶
func (e *Environment) GetDefaultContext() Context
type ErrNoDefaultCommand ¶
type ErrNoDefaultCommand struct {
// contains filtered or unexported fields
}
ErrNoDefaultCommand is returned when the default command is called but no command is provided to handle it.
func (*ErrNoDefaultCommand) Error ¶
func (e *ErrNoDefaultCommand) Error() string
Error implements the error interface
type ErrNoSuchCommand ¶
type ErrNoSuchCommand struct {
// contains filtered or unexported fields
}
ErrNoSuchCommand is returned when the requested command is not found
func (*ErrNoSuchCommand) Error ¶
func (e *ErrNoSuchCommand) Error() string
Error implements the error interface
Click to show internal directories.
Click to hide internal directories.