Documentation ¶
Index ¶
- func IsCallback() bool
- type Action
- func ActionBool() Action
- func ActionCallback(callback CompletionCallback) Action
- func ActionExecute(command string) Action
- func ActionFiles(suffix string) Action
- func ActionGroups() Action
- func ActionHosts() Action
- func ActionMessage(msg string) Action
- func ActionMultiParts(separator rune, values ...string) Action
- func ActionNetInterfaces() Action
- func ActionUsers() Action
- func ActionValues(values ...string) Action
- func ActionValuesDescribed(values ...string) Action
- type ActionMap
- type Carapace
- type CompletionCallback
- type Completions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsCallback ¶ added in v0.0.6
func IsCallback() bool
Types ¶
type Action ¶
type Action struct { Bash string Fish string Zsh string Callback CompletionCallback }
func ActionCallback ¶
func ActionCallback(callback CompletionCallback) Action
ActionCallback invokes a go function during completion
func ActionExecute ¶
ActionExecute uses command substitution to invoke a command and evalues it's result as Action
func ActionFiles ¶
func ActionMessage ¶
ActionMessage displays a help messages in places where no completions can be generated
func ActionMultiParts ¶
ActionMultiParts completes multiple parts of words separately where each part is separated by some char
func ActionNetInterfaces ¶
func ActionNetInterfaces() Action
ActionNetInterfaces completes network interface names
func ActionValues ¶
ActionValues completes arbitrary keywords (values)
func ActionValuesDescribed ¶
ActionValuesDescribed completes arbitrary key (values) with an additional description (value, description pairs)
type Carapace ¶
type Carapace struct {
// contains filtered or unexported fields
}
func (Carapace) FlagCompletion ¶
func (Carapace) PositionalCompletion ¶
type CompletionCallback ¶
type Completions ¶
type Completions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.