const ShellCompRequestCmd …
const ShellCompNoDescRequestCmd …
var flagCompletionFunctions …
var flagCompletionMutex …
type ShellCompDirective …
type flagCompError …
func (e *flagCompError) Error() string { … }
const ShellCompDirectiveError …
const ShellCompDirectiveNoSpace …
const ShellCompDirectiveNoFileComp …
const ShellCompDirectiveFilterFileExt …
const ShellCompDirectiveFilterDirs …
const ShellCompDirectiveKeepOrder …
const shellCompDirectiveMaxValue …
const ShellCompDirectiveDefault …
const compCmdName …
const compCmdNoDescFlagName …
const compCmdNoDescFlagDesc …
const compCmdNoDescFlagDefault …
type CompletionOptions …
func NoFileCompletions(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective) { … }
func FixedCompletions(choices []string, directive ShellCompDirective) func(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective) { … }
func (c *Command) RegisterFlagCompletionFunc(flagName string, f func(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective)) error { … }
func (c *Command) GetFlagCompletionFunc(flagName string) (func(*Command, []string, string) ([]string, ShellCompDirective), bool) { … }
func (d ShellCompDirective) string() string { … }
func (c *Command) initCompleteCmd(args []string) { … }
func (c *Command) getCompletions(args []string) (*Command, []string, ShellCompDirective, error) { … }
func helpOrVersionFlagPresent(cmd *Command) bool { … }
func getFlagNameCompletions(flag *pflag.Flag, toComplete string) []string { … }
func completeRequireFlags(finalCmd *Command, toComplete string) []string { … }
func checkIfFlagCompletion(finalCmd *Command, args []string, lastArg string) (*pflag.Flag, []string, string, error) { … }
func (c *Command) InitDefaultCompletionCmd() { … }
func findFlag(cmd *Command, name string) *pflag.Flag { … }
func CompDebug(msg string, printToStdErr bool) { … }
func CompDebugln(msg string, printToStdErr bool) { … }
func CompError(msg string) { … }
func CompErrorln(msg string) { … }
const configEnvVarGlobalPrefix …
const configEnvVarSuffixDescriptions …
var configEnvVarPrefixSubstRegexp …
func configEnvVar(name, suffix string) string { … }
func getEnvConfig(cmd *Command, suffix string) string { … }