Documentation ¶
Index ¶
- Variables
- func IsCallback() bool
- type Action
- func ActionBool() Action
- func ActionCallback(callback CompletionCallback) Action
- func ActionDirectories() Action
- func ActionExecute(command string) Action
- func ActionFiles(suffix string) Action
- func ActionGroups() Action
- func ActionHosts() Action
- func ActionKillSignals() Action
- func ActionMessage(msg string) Action
- func ActionMultiParts(divider string, callback func(args []string, parts []string) []string) Action
- func ActionNetInterfaces() Action
- func ActionPrefixValues(prefix string, values ...string) Action
- func ActionUserGroup() Action
- func ActionUsers() Action
- func ActionValues(values ...string) Action
- func ActionValuesDescribed(values ...string) Action
- type ActionMap
- type Carapace
- func (c Carapace) Bash() string
- func (c Carapace) Elvish() string
- func (c Carapace) Fish() string
- func (c Carapace) FlagCompletion(actions ActionMap)
- func (c Carapace) PositionalAnyCompletion(action Action)
- func (c Carapace) PositionalCompletion(action ...Action)
- func (c Carapace) Powershell() string
- func (c Carapace) Snippet(shell string) string
- func (c Carapace) Standalone()
- func (c Carapace) Zsh() string
- type CompletionCallback
- type Completions
Constants ¶
This section is empty.
Variables ¶
View Source
var CallbackValue string
TODO find a better solution for this
Functions ¶
func IsCallback ¶ added in v0.0.6
func IsCallback() bool
Types ¶
type Action ¶
type Action struct { Bash string Elvish string Fish string Zsh string Powershell string Callback CompletionCallback }
func ActionCallback ¶
func ActionCallback(callback CompletionCallback) Action
ActionCallback invokes a go function during completion
func ActionDirectories ¶ added in v0.0.11
func ActionDirectories() Action
func ActionExecute ¶
ActionExecute uses command substitution to invoke a command and evalues it's result as Action
func ActionFiles ¶
func ActionKillSignals ¶ added in v0.0.17
func ActionKillSignals() Action
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 ActionPrefixValues ¶ added in v0.0.16
func ActionUserGroup ¶ added in v0.0.17
func ActionUserGroup() Action
ActionUserGroup completes user:group separately
func ActionValues ¶
ActionValues completes arbitrary keywords (values)
func ActionValuesDescribed ¶
ActionValuesDescribed completes arbitrary key (values) with an additional description (value, description pairs)
func (Action) NestedValue ¶ added in v0.0.16
type Carapace ¶
type Carapace struct {
// contains filtered or unexported fields
}
func (Carapace) FlagCompletion ¶
func (Carapace) PositionalAnyCompletion ¶ added in v0.0.14
func (Carapace) PositionalCompletion ¶
func (Carapace) Powershell ¶ added in v0.0.12
func (Carapace) Standalone ¶ added in v0.0.14
func (c Carapace) Standalone()
type CompletionCallback ¶
type Completions ¶
type Completions struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.