Documentation
¶
Index ¶
Constants ¶
View Source
const CompNoSpaceFlag = cobra.ShellCompDirectiveNoSpace | cobra.ShellCompDirectiveNoFileComp
Variables ¶
View Source
var EmptyCompResult = &CompResult{ Flag: cobra.ShellCompDirectiveNoFileComp, }
Functions ¶
func Comp ¶
func Comp(actions ...CompAction) func(cmd *cobra.Command, args []string, toComplete string) ([]string, cobra.ShellCompDirective)
Types ¶
type CompAction ¶
type CompAction func(args Args) (*CompResult, error)
type CompResult ¶
type CompResult struct {
Items []string
Flag cobra.ShellCompDirective
}
type NoneContext ¶
type NoneContext struct{}
func (NoneContext) BuildContext ¶
func (NoneContext) BuildContext(Args) (*struct{}, error)
func (NoneContext) Close ¶
func (NoneContext) Close(_ *struct{}) error
Click to show internal directories.
Click to hide internal directories.