Documentation ¶
Overview ¶
Package completion contains utilities for implementing shell auto-completion.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ValidArgsFunc ¶
ValidArgsFunc is a function for use with cobra.Command.ValidArgsFunction.
func Positional ¶
func Positional(funcs ...ValidArgsFunc) ValidArgsFunc
Positional returns a ValidArgsFunc that delegates to the n'th function when the n'th argument is being completed.
func RepoName ¶
func RepoName( con *imbue.Container, loc ...api.Locality, ) ValidArgsFunc
RepoName returns a ValidArgsFunc that completes the argument at the given position using the known repository names.
func SourceName ¶
func SourceName( con *imbue.Container, ) ValidArgsFunc
SourceName returns a ValidArgsFunc that completes the argument at the given position using the known repository source names.
Click to show internal directories.
Click to hide internal directories.