MCPcopy
hub / github.com/spf13/cobra / nonCompletableFlag

Function nonCompletableFlag

bash_completions.go:696–698  ·  view source on GitHub ↗
(flag *pflag.Flag)

Source from the content-addressed store, hash-verified

694}
695
696func nonCompletableFlag(flag *pflag.Flag) bool {
697 return flag.Hidden || len(flag.Deprecated) > 0
698}
699
700// GenBashCompletionFile generates bash completion file.
701func (c *Command) GenBashCompletionFile(filename string) error {

Callers 3

getFlagNameCompletionsFunction · 0.85
writeFlagsFunction · 0.85
writeRequiredFlagFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected