Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Args ¶
func (*Args) AssertNoMoreArgs ¶
func (req *Args) AssertNoMoreArgs()
func (*Args) RemainingArgCount ¶
type Command ¶
type Command interface { interfaces.CommandComponent Run(Request) }
TODO add description
type CommandLine ¶
func (CommandLine) LastArg ¶
func (commandLine CommandLine) LastArg() (arg string, ok bool)
func (CommandLine) LastCompleteArg ¶
func (commandLine CommandLine) LastCompleteArg() (arg string, ok bool)
type Completion ¶
type Completion struct {
Value, Description string
}
type Description ¶
type Description struct {
Short, Long string
}
type FlagValueCompleter ¶
type FlagValueCompleter struct { flag.Value FuncCompleter }
func (FlagValueCompleter) Complete ¶
func (completer FlagValueCompleter) Complete( req Request, envLocal env_local.Env, commandLine CommandLine, )
func (FlagValueCompleter) String ¶
func (completer FlagValueCompleter) String() string
type FuncCompleter ¶
type FuncCompleter func(Request, env_local.Env, CommandLine)
type HasDescription ¶
type HasDescription interface {
GetDescription() Description
}
type Request ¶
func MakeRequest ¶
type SupportsCompletion ¶
type SupportsCompletion interface {
SupportsCompletion()
}
Click to show internal directories.
Click to hide internal directories.