kubernetes/vendor/github.com/spf13/cobra/completions.go

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

// NoFileCompletions can be used to disable file completion for commands that should
// not trigger file completions.
func NoFileCompletions(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective) {}

// FixedCompletions can be used to create a completion function which always
// returns the same results.
func FixedCompletions(choices []string, directive ShellCompDirective) func(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective) {}

// RegisterFlagCompletionFunc should be called to register a function to provide completion for a flag.
func (c *Command) RegisterFlagCompletionFunc(flagName string, f func(cmd *Command, args []string, toComplete string) ([]string, ShellCompDirective)) error {}

// GetFlagCompletionFunc returns the completion function for the given flag of the command, if available.
func (c *Command) GetFlagCompletionFunc(flagName string) (func(*Command, []string, string) ([]string, ShellCompDirective), bool) {}

// Returns a string listing the different directive enabled in the specified parameter
func (d ShellCompDirective) string() string {}

// initCompleteCmd adds a special hidden command that can be used to request custom completions.
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) {}

// InitDefaultCompletionCmd adds a default 'completion' command to c.
// This function will do nothing if any of the following is true:
// 1- the feature has been explicitly disabled by the program,
// 2- c has no subcommands (to avoid creating one),
// 3- c already has a 'completion' command provided by the program.
func (c *Command) InitDefaultCompletionCmd() {}

func findFlag(cmd *Command, name string) *pflag.Flag {}

// CompDebug prints the specified string to the same file as where the
// completion script prints its logs.
// Note that completion printouts should never be on stdout as they would
// be wrongly interpreted as actual completion choices by the completion script.
func CompDebug(msg string, printToStdErr bool) {}

// CompDebugln prints the specified string with a newline at the end
// to the same file as where the completion script prints its logs.
// Such logs are only printed when the user has set the environment
// variable BASH_COMP_DEBUG_FILE to the path of some file to be used.
func CompDebugln(msg string, printToStdErr bool) {}

// CompError prints the specified completion message to stderr.
func CompError(msg string) {}

// CompErrorln prints the specified completion message to stderr with a newline at the end.
func CompErrorln(msg string) {}

const configEnvVarGlobalPrefix

const configEnvVarSuffixDescriptions

var configEnvVarPrefixSubstRegexp

// configEnvVar returns the name of the program-specific configuration environment
// variable.  It has the format <PROGRAM>_<SUFFIX> where <PROGRAM> is the name of the
// root command in upper case, with all non-ASCII-alphanumeric characters replaced by `_`.
func configEnvVar(name, suffix string) string {}

// getEnvConfig returns the value of the configuration environment variable
// <PROGRAM>_<SUFFIX> where <PROGRAM> is the name of the root command in upper
// case, with all non-ASCII-alphanumeric characters replaced by `_`.
// If the value is empty or not set, the value of the environment variable
// COBRA_<SUFFIX> is returned instead.
func getEnvConfig(cmd *Command, suffix string) string {}