Documentation
¶
Index ¶
Constants ¶
View Source
const ( ShellCompletionBehaviorDefault ShellCompletionBehavior = iota ShellCompletionBehaviorFile = 10 ShellCompletionBehaviorNoComplete )
Variables ¶
This section is empty.
Functions ¶
func ExecuteShellCompletion ¶
Types ¶
type CompletionResult ¶
type CompletionResult struct {
Completions []ShellCompletion
Behavior ShellCompletionBehavior
}
func GetCompletions ¶
func GetCompletions(completionStyle CompletionStyle, root *cli.Command, args []string) CompletionResult
type CompletionStyle ¶
type CompletionStyle string
const ( CompletionStyleZsh CompletionStyle = "zsh" CompletionStyleBash CompletionStyle = "bash" CompletionStylePowershell CompletionStyle = "pwsh" CompletionStyleFish CompletionStyle = "fish" )
type ShellCompletion ¶
func NewShellCompletion ¶
func NewShellCompletion(name string, usage string) ShellCompletion
type ShellCompletionBehavior ¶
type ShellCompletionBehavior int
Click to show internal directories.
Click to hide internal directories.