Documentation
¶
Overview ¶
Package engine contains the dependency-free argv parsing boundary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Command ¶
type Command struct {
ID int
Name string
Aliases []string
Summary string
Version string
Options []Option
Children []Command
}
Command is the parser-neutral subset required for token parsing.
type FailureKind ¶
type FailureKind uint8
FailureKind is a stable adapter-level parse classification.
const ( // FailureUsage identifies a general parsing failure. FailureUsage FailureKind = iota // FailureUnknownCommand identifies an unknown command token. FailureUnknownCommand // FailureUnknownOption identifies an unknown option token. FailureUnknownOption // FailureMissingValue identifies an option missing its value. FailureMissingValue )
type ParseError ¶
type ParseError struct {
Kind FailureKind
}
ParseError insulates public classification from parser implementation details.
func (*ParseError) Error ¶
func (err *ParseError) Error() string
type UnsupportedShellError ¶
type UnsupportedShellError struct{ Shell string }
UnsupportedShellError identifies an unsupported generator name.
func (*UnsupportedShellError) Error ¶
func (err *UnsupportedShellError) Error() string
Click to show internal directories.
Click to hide internal directories.