SYMBOL INDEX (654 symbols across 35 files) FILE: active_help.go constant activeHelpMarker (line 23) | activeHelpMarker = "_activeHelp_ " constant activeHelpEnvVarSuffix (line 26) | activeHelpEnvVarSuffix = "ACTIVE_HELP" constant activeHelpGlobalEnvVar (line 27) | activeHelpGlobalEnvVar = configEnvVarGlobalPrefix + "_" + activeHelpEnv... constant activeHelpGlobalDisable (line 28) | activeHelpGlobalDisable = "0" function AppendActiveHelp (line 38) | func AppendActiveHelp(compArray []Completion, activeHelpStr string) []Co... function GetActiveHelpConfig (line 47) | func GetActiveHelpConfig(cmd *Command) string { function activeHelpEnvVar (line 58) | func activeHelpEnvVar(name string) string { FILE: active_help_test.go constant activeHelpMessage (line 25) | activeHelpMessage = "This is an activeHelp message" constant activeHelpMessage2 (line 26) | activeHelpMessage2 = "This is the rest of the activeHelp message" function TestActiveHelpAlone (line 29) | func TestActiveHelpAlone(t *testing.T) { function TestActiveHelpWithComps (line 84) | func TestActiveHelpWithComps(t *testing.T) { function TestMultiActiveHelp (line 169) | func TestMultiActiveHelp(t *testing.T) { function TestActiveHelpForFlag (line 231) | func TestActiveHelpForFlag(t *testing.T) { function TestConfigActiveHelp (line 266) | func TestConfigActiveHelp(t *testing.T) { function TestDisableActiveHelp (line 319) | func TestDisableActiveHelp(t *testing.T) { FILE: args.go type PositionalArgs (line 22) | type PositionalArgs function legacyArgs (line 28) | func legacyArgs(cmd *Command, args []string) error { function NoArgs (line 42) | func NoArgs(cmd *Command, args []string) error { function OnlyValidArgs (line 51) | func OnlyValidArgs(cmd *Command, args []string) error { function ArbitraryArgs (line 69) | func ArbitraryArgs(cmd *Command, args []string) error { function MinimumNArgs (line 74) | func MinimumNArgs(n int) PositionalArgs { function MaximumNArgs (line 84) | func MaximumNArgs(n int) PositionalArgs { function ExactArgs (line 94) | func ExactArgs(n int) PositionalArgs { function RangeArgs (line 104) | func RangeArgs(min int, max int) PositionalArgs { function MatchAll (line 114) | func MatchAll(pargs ...PositionalArgs) PositionalArgs { function ExactValidArgs (line 129) | func ExactValidArgs(n int) PositionalArgs { FILE: args_test.go function getCommand (line 23) | func getCommand(args PositionalArgs, withValid bool) *Command { function expectSuccess (line 35) | func expectSuccess(output string, err error, t *testing.T) { function validOnlyWithInvalidArgs (line 44) | func validOnlyWithInvalidArgs(err error, t *testing.T) { function noArgsWithArgs (line 55) | func noArgsWithArgs(err error, t *testing.T, arg string) { function minimumNArgsWithLessArgs (line 66) | func minimumNArgsWithLessArgs(err error, t *testing.T) { function maximumNArgsWithMoreArgs (line 77) | func maximumNArgsWithMoreArgs(err error, t *testing.T) { function exactArgsWithInvalidCount (line 88) | func exactArgsWithInvalidCount(err error, t *testing.T) { function rangeArgsWithInvalidCount (line 99) | func rangeArgsWithInvalidCount(err error, t *testing.T) { function TestNoArgs (line 112) | func TestNoArgs(t *testing.T) { function TestNoArgs_WithArgs (line 118) | func TestNoArgs_WithArgs(t *testing.T) { function TestNoArgs_WithValid_WithArgs (line 124) | func TestNoArgs_WithValid_WithArgs(t *testing.T) { function TestNoArgs_WithValid_WithInvalidArgs (line 130) | func TestNoArgs_WithValid_WithInvalidArgs(t *testing.T) { function TestNoArgs_WithValidOnly_WithInvalidArgs (line 136) | func TestNoArgs_WithValidOnly_WithInvalidArgs(t *testing.T) { function TestOnlyValidArgs (line 144) | func TestOnlyValidArgs(t *testing.T) { function TestOnlyValidArgs_WithInvalidArgs (line 150) | func TestOnlyValidArgs_WithInvalidArgs(t *testing.T) { function TestArbitraryArgs (line 158) | func TestArbitraryArgs(t *testing.T) { function TestArbitraryArgs_WithValid (line 164) | func TestArbitraryArgs_WithValid(t *testing.T) { function TestArbitraryArgs_WithValid_WithInvalidArgs (line 170) | func TestArbitraryArgs_WithValid_WithInvalidArgs(t *testing.T) { function TestArbitraryArgs_WithValidOnly_WithInvalidArgs (line 176) | func TestArbitraryArgs_WithValidOnly_WithInvalidArgs(t *testing.T) { function TestMinimumNArgs (line 184) | func TestMinimumNArgs(t *testing.T) { function TestMinimumNArgs_WithValid (line 190) | func TestMinimumNArgs_WithValid(t *testing.T) { function TestMinimumNArgs_WithValid__WithInvalidArgs (line 196) | func TestMinimumNArgs_WithValid__WithInvalidArgs(t *testing.T) { function TestMinimumNArgs_WithValidOnly_WithInvalidArgs (line 202) | func TestMinimumNArgs_WithValidOnly_WithInvalidArgs(t *testing.T) { function TestMinimumNArgs_WithLessArgs (line 208) | func TestMinimumNArgs_WithLessArgs(t *testing.T) { function TestMinimumNArgs_WithLessArgs_WithValid (line 214) | func TestMinimumNArgs_WithLessArgs_WithValid(t *testing.T) { function TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs (line 220) | func TestMinimumNArgs_WithLessArgs_WithValid_WithInvalidArgs(t *testing.... function TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs (line 226) | func TestMinimumNArgs_WithLessArgs_WithValidOnly_WithInvalidArgs(t *test... function TestMaximumNArgs (line 234) | func TestMaximumNArgs(t *testing.T) { function TestMaximumNArgs_WithValid (line 240) | func TestMaximumNArgs_WithValid(t *testing.T) { function TestMaximumNArgs_WithValid_WithInvalidArgs (line 246) | func TestMaximumNArgs_WithValid_WithInvalidArgs(t *testing.T) { function TestMaximumNArgs_WithValidOnly_WithInvalidArgs (line 252) | func TestMaximumNArgs_WithValidOnly_WithInvalidArgs(t *testing.T) { function TestMaximumNArgs_WithMoreArgs (line 258) | func TestMaximumNArgs_WithMoreArgs(t *testing.T) { function TestMaximumNArgs_WithMoreArgs_WithValid (line 264) | func TestMaximumNArgs_WithMoreArgs_WithValid(t *testing.T) { function TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs (line 270) | func TestMaximumNArgs_WithMoreArgs_WithValid_WithInvalidArgs(t *testing.... function TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs (line 276) | func TestMaximumNArgs_WithMoreArgs_WithValidOnly_WithInvalidArgs(t *test... function TestExactArgs (line 284) | func TestExactArgs(t *testing.T) { function TestExactArgs_WithValid (line 290) | func TestExactArgs_WithValid(t *testing.T) { function TestExactArgs_WithValid_WithInvalidArgs (line 296) | func TestExactArgs_WithValid_WithInvalidArgs(t *testing.T) { function TestExactArgs_WithValidOnly_WithInvalidArgs (line 302) | func TestExactArgs_WithValidOnly_WithInvalidArgs(t *testing.T) { function TestExactArgs_WithInvalidCount (line 308) | func TestExactArgs_WithInvalidCount(t *testing.T) { function TestExactArgs_WithInvalidCount_WithValid (line 314) | func TestExactArgs_WithInvalidCount_WithValid(t *testing.T) { function TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs (line 320) | func TestExactArgs_WithInvalidCount_WithValid_WithInvalidArgs(t *testing... function TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs (line 326) | func TestExactArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs(t *tes... function TestRangeArgs (line 334) | func TestRangeArgs(t *testing.T) { function TestRangeArgs_WithValid (line 340) | func TestRangeArgs_WithValid(t *testing.T) { function TestRangeArgs_WithValid_WithInvalidArgs (line 346) | func TestRangeArgs_WithValid_WithInvalidArgs(t *testing.T) { function TestRangeArgs_WithValidOnly_WithInvalidArgs (line 352) | func TestRangeArgs_WithValidOnly_WithInvalidArgs(t *testing.T) { function TestRangeArgs_WithInvalidCount (line 358) | func TestRangeArgs_WithInvalidCount(t *testing.T) { function TestRangeArgs_WithInvalidCount_WithValid (line 364) | func TestRangeArgs_WithInvalidCount_WithValid(t *testing.T) { function TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs (line 370) | func TestRangeArgs_WithInvalidCount_WithValid_WithInvalidArgs(t *testing... function TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs (line 376) | func TestRangeArgs_WithInvalidCount_WithValidOnly_WithInvalidArgs(t *tes... function TestRootTakesNoArgs (line 384) | func TestRootTakesNoArgs(t *testing.T) { function TestRootTakesArgs (line 401) | func TestRootTakesArgs(t *testing.T) { function TestChildTakesNoArgs (line 412) | func TestChildTakesNoArgs(t *testing.T) { function TestChildTakesArgs (line 429) | func TestChildTakesArgs(t *testing.T) { function TestMatchAll (line 440) | func TestMatchAll(t *testing.T) { function TestExactValidArgs (line 490) | func TestExactValidArgs(t *testing.T) { function TestExactValidArgs_WithInvalidCount (line 496) | func TestExactValidArgs_WithInvalidCount(t *testing.T) { function TestExactValidArgs_WithInvalidCount_WithInvalidArgs (line 502) | func TestExactValidArgs_WithInvalidCount_WithInvalidArgs(t *testing.T) { function TestExactValidArgs_WithInvalidArgs (line 508) | func TestExactValidArgs_WithInvalidArgs(t *testing.T) { function TestLegacyArgsRootAcceptsArgs (line 518) | func TestLegacyArgsRootAcceptsArgs(t *testing.T) { function TestLegacyArgsSubcmdAcceptsArgs (line 530) | func TestLegacyArgsSubcmdAcceptsArgs(t *testing.T) { FILE: bash_completions.go constant BashCompFilenameExt (line 30) | BashCompFilenameExt = "cobra_annotation_bash_completion_filename_ext... constant BashCompCustom (line 31) | BashCompCustom = "cobra_annotation_bash_completion_custom" constant BashCompOneRequiredFlag (line 32) | BashCompOneRequiredFlag = "cobra_annotation_bash_completion_one_required... constant BashCompSubdirsInDir (line 33) | BashCompSubdirsInDir = "cobra_annotation_bash_completion_subdirs_in_dir" function writePreamble (line 36) | func writePreamble(buf io.StringWriter, name string) { function writePostscript (line 404) | func writePostscript(buf io.StringWriter, name string) { function writeCommands (line 447) | func writeCommands(buf io.StringWriter, cmd *Command) { function writeFlagHandler (line 459) | func writeFlagHandler(buf io.StringWriter, name string, annotations map[... constant cbn (line 495) | cbn = "\")\n" function writeShortFlag (line 497) | func writeShortFlag(buf io.StringWriter, flag *pflag.Flag, cmd *Command) { function writeFlag (line 508) | func writeFlag(buf io.StringWriter, flag *pflag.Flag, cmd *Command) { function writeLocalNonPersistentFlag (line 523) | func writeLocalNonPersistentFlag(buf io.StringWriter, flag *pflag.Flag) { function prepareCustomAnnotationsForFlags (line 536) | func prepareCustomAnnotationsForFlags(cmd *Command) { function writeFlags (line 551) | func writeFlags(buf io.StringWriter, cmd *Command) { function writeRequiredFlag (line 593) | func writeRequiredFlag(buf io.StringWriter, cmd *Command) { function writeRequiredNouns (line 615) | func writeRequiredNouns(buf io.StringWriter, cmd *Command) { function writeCmdAliases (line 629) | func writeCmdAliases(buf io.StringWriter, cmd *Command) { function writeArgAliases (line 644) | func writeArgAliases(buf io.StringWriter, cmd *Command) { function gen (line 652) | func gen(buf io.StringWriter, cmd *Command) { method GenBashCompletion (line 683) | func (c *Command) GenBashCompletion(w io.Writer) error { function nonCompletableFlag (line 696) | func nonCompletableFlag(flag *pflag.Flag) bool { method GenBashCompletionFile (line 701) | func (c *Command) GenBashCompletionFile(filename string) error { FILE: bash_completionsV2.go method genBashCompletion (line 24) | func (c *Command) genBashCompletion(w io.Writer, includeDesc bool) error { function genBashComp (line 31) | func genBashComp(buf io.StringWriter, name string, includeDesc bool) { method GenBashCompletionFileV2 (line 470) | func (c *Command) GenBashCompletionFileV2(filename string, includeDesc b... method GenBashCompletionV2 (line 482) | func (c *Command) GenBashCompletionV2(w io.Writer, includeDesc bool) err... FILE: bash_completionsV2_test.go function TestBashCompletionV2WithActiveHelp (line 23) | func TestBashCompletionV2WithActiveHelp(t *testing.T) { FILE: bash_completions_test.go function checkOmit (line 27) | func checkOmit(t *testing.T, found, unexpected string) { function check (line 33) | func check(t *testing.T, found, expected string) { function checkNumOccurrences (line 39) | func checkNumOccurrences(t *testing.T, found, expected string, expectedO... function checkRegex (line 46) | func checkRegex(t *testing.T, found, pattern string) { function runShellCheck (line 56) | func runShellCheck(s string) error { constant bashCompletionFunc (line 78) | bashCompletionFunc = `__root_custom_func() { function TestBashCompletions (line 83) | func TestBashCompletions(t *testing.T) { function TestBashCompletionHiddenFlag (line 229) | func TestBashCompletionHiddenFlag(t *testing.T) { function TestBashCompletionDeprecatedFlag (line 245) | func TestBashCompletionDeprecatedFlag(t *testing.T) { function TestBashCompletionTraverseChildren (line 261) | func TestBashCompletionTraverseChildren(t *testing.T) { function TestBashCompletionNoActiveHelp (line 279) | func TestBashCompletionNoActiveHelp(t *testing.T) { FILE: cobra.go constant defaultPrefixMatching (line 46) | defaultPrefixMatching = false constant defaultCommandSorting (line 47) | defaultCommandSorting = true constant defaultCaseInsensitive (line 48) | defaultCaseInsensitive = false constant defaultTraverseRunHooks (line 49) | defaultTraverseRunHooks = false function AddTemplateFunc (line 85) | func AddTemplateFunc(name string, tmplFunc interface{}) { function AddTemplateFuncs (line 91) | func AddTemplateFuncs(tmplFuncs template.FuncMap) { function OnInitialize (line 99) | func OnInitialize(y ...func()) { function OnFinalize (line 105) | func OnFinalize(y ...func()) { function Gt (line 114) | func Gt(a interface{}, b interface{}) bool { function Eq (line 144) | func Eq(a interface{}, b interface{}) bool { function trimRightSpace (line 159) | func trimRightSpace(s string) string { function appendIfNotPresent (line 166) | func appendIfNotPresent(s, stringToAppend string) string { function rpad (line 174) | func rpad(s string, padding int) string { function tmpl (line 179) | func tmpl(text string) *tmplFunc { function ld (line 192) | func ld(s, t string, ignoreCase bool) int { function stringInSlice (line 225) | func stringInSlice(a string, list []string) bool { function CheckErr (line 235) | func CheckErr(msg interface{}) { function WriteStringAndCheck (line 243) | func WriteStringAndCheck(b io.StringWriter, s string) { FILE: cobra_test.go function assertNoErr (line 27) | func assertNoErr(t *testing.T, e error) { function TestAddTemplateFunctions (line 33) | func TestAddTemplateFunctions(t *testing.T) { function TestLevenshteinDistance (line 49) | func TestLevenshteinDistance(t *testing.T) { function TestStringInSlice (line 121) | func TestStringInSlice(t *testing.T) { function TestRpad (line 185) | func TestRpad(t *testing.T) { function TestDeadcodeElimination (line 245) | func TestDeadcodeElimination(t *testing.T) { FILE: command.go constant FlagSetByCobraAnnotation (line 34) | FlagSetByCobraAnnotation = "cobra_annotation_flag_set_by_cobra" constant CommandDisplayNameAnnotation (line 35) | CommandDisplayNameAnnotation = "cobra_annotation_command_display_name" constant helpFlagName (line 37) | helpFlagName = "help" constant helpCommandName (line 38) | helpCommandName = "help" type FParseErrWhitelist (line 42) | type FParseErrWhitelist type Group (line 45) | type Group struct type Command (line 54) | type Command struct method Context (line 269) | func (c *Command) Context() context.Context { method SetContext (line 275) | func (c *Command) SetContext(ctx context.Context) { method SetArgs (line 281) | func (c *Command) SetArgs(a []string) { method SetOutput (line 289) | func (c *Command) SetOutput(output io.Writer) { method SetOut (line 296) | func (c *Command) SetOut(newOut io.Writer) { method SetErr (line 302) | func (c *Command) SetErr(newErr io.Writer) { method SetIn (line 308) | func (c *Command) SetIn(newIn io.Reader) { method SetUsageFunc (line 313) | func (c *Command) SetUsageFunc(f func(*Command) error) { method SetUsageTemplate (line 318) | func (c *Command) SetUsageTemplate(s string) { method SetFlagErrorFunc (line 328) | func (c *Command) SetFlagErrorFunc(f func(*Command, error) error) { method SetHelpFunc (line 333) | func (c *Command) SetHelpFunc(f func(*Command, []string)) { method SetHelpCommand (line 338) | func (c *Command) SetHelpCommand(cmd *Command) { method SetHelpCommandGroupID (line 343) | func (c *Command) SetHelpCommandGroupID(groupID string) { method SetCompletionCommandGroupID (line 352) | func (c *Command) SetCompletionCommandGroupID(groupID string) { method SetHelpTemplate (line 358) | func (c *Command) SetHelpTemplate(s string) { method SetVersionTemplate (line 367) | func (c *Command) SetVersionTemplate(s string) { method SetErrPrefix (line 376) | func (c *Command) SetErrPrefix(s string) { method SetGlobalNormalizationFunc (line 382) | func (c *Command) SetGlobalNormalizationFunc(n func(f *flag.FlagSet, n... method OutOrStdout (line 393) | func (c *Command) OutOrStdout() io.Writer { method OutOrStderr (line 398) | func (c *Command) OutOrStderr() io.Writer { method ErrOrStderr (line 403) | func (c *Command) ErrOrStderr() io.Writer { method InOrStdin (line 408) | func (c *Command) InOrStdin() io.Reader { method getOut (line 412) | func (c *Command) getOut(def io.Writer) io.Writer { method getErr (line 422) | func (c *Command) getErr(def io.Writer) io.Writer { method getIn (line 432) | func (c *Command) getIn(def io.Reader) io.Reader { method UsageFunc (line 444) | func (c *Command) UsageFunc() (f func(*Command) error) { method getUsageTemplateFunc (line 464) | func (c *Command) getUsageTemplateFunc() func(w io.Writer, data interf... method Usage (line 478) | func (c *Command) Usage() error { method HelpFunc (line 484) | func (c *Command) HelpFunc() func(*Command, []string) { method getHelpTemplateFunc (line 505) | func (c *Command) getHelpTemplateFunc() func(w io.Writer, data interfa... method Help (line 520) | func (c *Command) Help() error { method UsageString (line 526) | func (c *Command) UsageString() string { method FlagErrorFunc (line 547) | func (c *Command) FlagErrorFunc() (f func(*Command, error) error) { method UsagePadding (line 563) | func (c *Command) UsagePadding() int { method CommandPathPadding (line 573) | func (c *Command) CommandPathPadding() int { method NamePadding (line 583) | func (c *Command) NamePadding() int { method UsageTemplate (line 592) | func (c *Command) UsageTemplate() string { method HelpTemplate (line 605) | func (c *Command) HelpTemplate() string { method VersionTemplate (line 618) | func (c *Command) VersionTemplate() string { method getVersionTemplateFunc (line 631) | func (c *Command) getVersionTemplateFunc() func(w io.Writer, data inte... method ErrPrefix (line 643) | func (c *Command) ErrPrefix() string { method argsMinusFirstX (line 715) | func (c *Command) argsMinusFirstX(args []string, x string) []string { method Find (line 757) | func (c *Command) Find(args []string) (*Command, []string, error) { method findSuggestions (line 781) | func (c *Command) findSuggestions(arg string) string { method findNext (line 798) | func (c *Command) findNext(next string) *Command { method Traverse (line 821) | func (c *Command) Traverse(args []string) (*Command, []string, error) { method SuggestionsFor (line 863) | func (c *Command) SuggestionsFor(typedName string) []string { method VisitParents (line 884) | func (c *Command) VisitParents(fn func(*Command)) { method Root (line 892) | func (c *Command) Root() *Command { method ArgsLenAtDash (line 901) | func (c *Command) ArgsLenAtDash() int { method execute (line 905) | func (c *Command) execute(a []string) (err error) { method preRun (line 1047) | func (c *Command) preRun() { method postRun (line 1053) | func (c *Command) postRun() { method ExecuteContext (line 1062) | func (c *Command) ExecuteContext(ctx context.Context) error { method Execute (line 1070) | func (c *Command) Execute() error { method ExecuteContextC (line 1078) | func (c *Command) ExecuteContextC(ctx context.Context) (*Command, erro... method ExecuteC (line 1084) | func (c *Command) ExecuteC() (cmd *Command, err error) { method ValidateArgs (line 1172) | func (c *Command) ValidateArgs(args []string) error { method ValidateRequiredFlags (line 1180) | func (c *Command) ValidateRequiredFlags() error { method checkCommandGroups (line 1205) | func (c *Command) checkCommandGroups() { method InitDefaultHelpFlag (line 1219) | func (c *Command) InitDefaultHelpFlag() { method InitDefaultVersionFlag (line 1238) | func (c *Command) InitDefaultVersionFlag() { method InitDefaultHelpCmd (line 1263) | func (c *Command) InitDefaultHelpCmd() { method ResetCommands (line 1317) | func (c *Command) ResetCommands() { method Commands (line 1332) | func (c *Command) Commands() []*Command { method AddCommand (line 1342) | func (c *Command) AddCommand(cmds ...*Command) { method Groups (line 1371) | func (c *Command) Groups() []*Group { method AllChildCommandsHaveGroup (line 1376) | func (c *Command) AllChildCommandsHaveGroup() bool { method ContainsGroup (line 1386) | func (c *Command) ContainsGroup(groupID string) bool { method AddGroup (line 1396) | func (c *Command) AddGroup(groups ...*Group) { method RemoveCommand (line 1401) | func (c *Command) RemoveCommand(cmds ...*Command) { method Print (line 1435) | func (c *Command) Print(i ...interface{}) { method Println (line 1440) | func (c *Command) Println(i ...interface{}) { method Printf (line 1445) | func (c *Command) Printf(format string, i ...interface{}) { method PrintErr (line 1450) | func (c *Command) PrintErr(i ...interface{}) { method PrintErrln (line 1455) | func (c *Command) PrintErrln(i ...interface{}) { method PrintErrf (line 1460) | func (c *Command) PrintErrf(format string, i ...interface{}) { method CommandPath (line 1465) | func (c *Command) CommandPath() string { method DisplayName (line 1474) | func (c *Command) DisplayName() string { method UseLine (line 1482) | func (c *Command) UseLine() string { method DebugFlags (line 1501) | func (c *Command) DebugFlags() { method Name (line 1541) | func (c *Command) Name() string { method HasAlias (line 1551) | func (c *Command) HasAlias(s string) bool { method CalledAs (line 1562) | func (c *Command) CalledAs() string { method hasNameOrAliasPrefix (line 1571) | func (c *Command) hasNameOrAliasPrefix(prefix string) bool { method NameAndAliases (line 1586) | func (c *Command) NameAndAliases() string { method HasExample (line 1591) | func (c *Command) HasExample() bool { method Runnable (line 1596) | func (c *Command) Runnable() bool { method HasSubCommands (line 1601) | func (c *Command) HasSubCommands() bool { method IsAvailableCommand (line 1607) | func (c *Command) IsAvailableCommand() bool { method IsAdditionalHelpTopicCommand (line 1628) | func (c *Command) IsAdditionalHelpTopicCommand() bool { method HasHelpSubCommands (line 1648) | func (c *Command) HasHelpSubCommands() bool { method HasAvailableSubCommands (line 1662) | func (c *Command) HasAvailableSubCommands() bool { method HasParent (line 1677) | func (c *Command) HasParent() bool { method GlobalNormalizationFunc (line 1682) | func (c *Command) GlobalNormalizationFunc() func(f *flag.FlagSet, name... method Flags (line 1688) | func (c *Command) Flags() *flag.FlagSet { method LocalNonPersistentFlags (line 1702) | func (c *Command) LocalNonPersistentFlags() *flag.FlagSet { method LocalFlags (line 1716) | func (c *Command) LocalFlags() *flag.FlagSet { method InheritedFlags (line 1744) | func (c *Command) InheritedFlags() *flag.FlagSet { method NonInheritedFlags (line 1770) | func (c *Command) NonInheritedFlags() *flag.FlagSet { method PersistentFlags (line 1775) | func (c *Command) PersistentFlags() *flag.FlagSet { method ResetFlags (line 1787) | func (c *Command) ResetFlags() { method HasFlags (line 1801) | func (c *Command) HasFlags() bool { method HasPersistentFlags (line 1806) | func (c *Command) HasPersistentFlags() bool { method HasLocalFlags (line 1811) | func (c *Command) HasLocalFlags() bool { method HasInheritedFlags (line 1816) | func (c *Command) HasInheritedFlags() bool { method HasAvailableFlags (line 1822) | func (c *Command) HasAvailableFlags() bool { method HasAvailablePersistentFlags (line 1827) | func (c *Command) HasAvailablePersistentFlags() bool { method HasAvailableLocalFlags (line 1833) | func (c *Command) HasAvailableLocalFlags() bool { method HasAvailableInheritedFlags (line 1839) | func (c *Command) HasAvailableInheritedFlags() bool { method Flag (line 1844) | func (c *Command) Flag(name string) (flag *flag.Flag) { method persistentFlag (line 1855) | func (c *Command) persistentFlag(name string) (flag *flag.Flag) { method ParseFlags (line 1868) | func (c *Command) ParseFlags(args []string) error { method Parent (line 1892) | func (c *Command) Parent() *Command { method mergePersistentFlags (line 1898) | func (c *Command) mergePersistentFlags() { method updateParentsPflags (line 1907) | func (c *Command) updateParentsPflags() { constant minUsagePadding (line 560) | minUsagePadding = 25 constant minCommandPathPadding (line 570) | minCommandPathPadding = 11 constant minNamePadding (line 580) | minNamePadding = 11 function hasNoOptDefVal (line 654) | func hasNoOptDefVal(name string, fs *flag.FlagSet) bool { function shortHasNoOptDefVal (line 662) | func shortHasNoOptDefVal(name string, fs *flag.FlagSet) bool { function stripFlags (line 674) | func stripFlags(args []string, c *Command) []string { function isFlagArg (line 750) | func isFlagArg(arg string) bool { type commandSorterByName (line 1325) | type commandSorterByName method Len (line 1327) | func (c commandSorterByName) Len() int { return len(c) } method Swap (line 1328) | func (c commandSorterByName) Swap(i, j int) { c[i], c[j] = c[j], ... method Less (line 1329) | func (c commandSorterByName) Less(i, j int) bool { return c[i].Name() ... function commandNameMatches (line 1928) | func commandNameMatches(s string, t string) bool { type tmplFunc (line 1937) | type tmplFunc struct constant defaultUsageTemplate (line 1942) | defaultUsageTemplate = `Usage:{{if .Runnable}} function defaultUsageFunc (line 1974) | func defaultUsageFunc(w io.Writer, in interface{}) error { constant defaultHelpTemplate (line 2042) | defaultHelpTemplate = `{{with (or .Long .Short)}}{{. | trimTrailingWhite... function defaultHelpFunc (line 2047) | func defaultHelpFunc(w io.Writer, in interface{}) error { constant defaultVersionTemplate (line 2064) | defaultVersionTemplate = `{{with .DisplayName}}{{printf "%s " .}}{{end}}... function defaultVersionFunc (line 2068) | func defaultVersionFunc(w io.Writer, in interface{}) error { FILE: command_test.go function emptyRun (line 30) | func emptyRun(*Command, []string) {} function executeCommand (line 32) | func executeCommand(root *Command, args ...string) (output string, err e... function executeCommandWithContext (line 37) | func executeCommandWithContext(ctx context.Context, root *Command, args ... function executeCommandC (line 48) | func executeCommandC(root *Command, args ...string) (c *Command, output ... function executeCommandWithContextC (line 59) | func executeCommandWithContextC(ctx context.Context, root *Command, args... function resetCommandLineFlagSet (line 70) | func resetCommandLineFlagSet() { function checkStringContains (line 74) | func checkStringContains(t *testing.T, got, expected string) { function checkStringOmits (line 80) | func checkStringOmits(t *testing.T, got, expected string) { constant onetwo (line 86) | onetwo = "one two" function TestSingleCommand (line 88) | func TestSingleCommand(t *testing.T) { function TestChildCommand (line 113) | func TestChildCommand(t *testing.T) { function TestCallCommandWithoutSubcommands (line 138) | func TestCallCommandWithoutSubcommands(t *testing.T) { function TestRootExecuteUnknownCommand (line 146) | func TestRootExecuteUnknownCommand(t *testing.T) { function TestSubcommandExecuteC (line 159) | func TestSubcommandExecuteC(t *testing.T) { function TestExecuteContext (line 177) | func TestExecuteContext(t *testing.T) { function TestExecuteContextC (line 206) | func TestExecuteContextC(t *testing.T) { function TestExecute_NoContext (line 235) | func TestExecute_NoContext(t *testing.T) { function TestRootUnknownCommandSilenced (line 262) | func TestRootUnknownCommandSilenced(t *testing.T) { function TestCommandAlias (line 274) | func TestCommandAlias(t *testing.T) { function TestEnablePrefixMatching (line 305) | func TestEnablePrefixMatching(t *testing.T) { function TestAliasPrefixMatching (line 334) | func TestAliasPrefixMatching(t *testing.T) { function TestPlugin (line 372) | func TestPlugin(t *testing.T) { function TestPluginWithSubCommands (line 394) | func TestPluginWithSubCommands(t *testing.T) { function TestChildSameName (line 437) | func TestChildSameName(t *testing.T) { function TestGrandChildSameName (line 465) | func TestGrandChildSameName(t *testing.T) { function TestFlagLong (line 491) | func TestFlagLong(t *testing.T) { function TestFlagShort (line 528) | func TestFlagShort(t *testing.T) { function TestChildFlag (line 562) | func TestChildFlag(t *testing.T) { function TestChildFlagWithParentLocalFlag (line 583) | func TestChildFlagWithParentLocalFlag(t *testing.T) { function TestFlagInvalidInput (line 604) | func TestFlagInvalidInput(t *testing.T) { function TestFlagBeforeCommand (line 616) | func TestFlagBeforeCommand(t *testing.T) { function TestStripFlags (line 643) | func TestStripFlags(t *testing.T) { function TestDisableFlagParsing (line 716) | func TestDisableFlagParsing(t *testing.T) { function TestPersistentFlagsOnSameCommand (line 740) | func TestPersistentFlagsOnSameCommand(t *testing.T) { function TestEmptyInputs (line 770) | func TestEmptyInputs(t *testing.T) { function TestChildFlagShadowsParentPersistentFlag (line 789) | func TestChildFlagShadowsParentPersistentFlag(t *testing.T) { function TestPersistentFlagsOnChild (line 818) | func TestPersistentFlagsOnChild(t *testing.T) { function TestRequiredFlags (line 853) | func TestRequiredFlags(t *testing.T) { function TestPersistentRequiredFlags (line 871) | func TestPersistentRequiredFlags(t *testing.T) { function TestPersistentRequiredFlagsWithDisableFlagParsing (line 896) | func TestPersistentRequiredFlagsWithDisableFlagParsing(t *testing.T) { function TestInitHelpFlagMergesFlags (line 927) | func TestInitHelpFlagMergesFlags(t *testing.T) { function TestHelpCommandExecuted (line 941) | func TestHelpCommandExecuted(t *testing.T) { function TestHelpCommandExecutedOnChild (line 953) | func TestHelpCommandExecutedOnChild(t *testing.T) { function TestHelpCommandExecutedOnChildWithFlagThatShadowsParentFlag (line 966) | func TestHelpCommandExecutedOnChildWithFlagThatShadowsParentFlag(t *test... function TestSetHelpCommand (line 998) | func TestSetHelpCommand(t *testing.T) { function TestSetHelpTemplate (line 1021) | func TestSetHelpTemplate(t *testing.T) { function TestHelpFlagExecuted (line 1064) | func TestHelpFlagExecuted(t *testing.T) { function TestHelpFlagExecutedOnChild (line 1075) | func TestHelpFlagExecutedOnChild(t *testing.T) { function TestHelpFlagInHelp (line 1092) | func TestHelpFlagInHelp(t *testing.T) { function TestFlagsInUsage (line 1106) | func TestFlagsInUsage(t *testing.T) { function TestHelpExecutedOnNonRunnableChild (line 1116) | func TestHelpExecutedOnNonRunnableChild(t *testing.T) { function TestSetUsageTemplate (line 1129) | func TestSetUsageTemplate(t *testing.T) { function TestVersionFlagExecuted (line 1168) | func TestVersionFlagExecuted(t *testing.T) { function TestVersionFlagExecutedDiplayName (line 1179) | func TestVersionFlagExecutedDiplayName(t *testing.T) { function TestVersionFlagExecutedWithNoName (line 1197) | func TestVersionFlagExecutedWithNoName(t *testing.T) { function TestShortAndLongVersionFlagInHelp (line 1208) | func TestShortAndLongVersionFlagInHelp(t *testing.T) { function TestLongVersionFlagOnlyInHelpWhenShortPredefined (line 1219) | func TestLongVersionFlagOnlyInHelpWhenShortPredefined(t *testing.T) { function TestShorthandVersionFlagExecuted (line 1232) | func TestShorthandVersionFlagExecuted(t *testing.T) { function TestVersionTemplate (line 1243) | func TestVersionTemplate(t *testing.T) { function TestShorthandVersionTemplate (line 1255) | func TestShorthandVersionTemplate(t *testing.T) { function TestRootErrPrefixExecutedOnSubcommand (line 1267) | func TestRootErrPrefixExecutedOnSubcommand(t *testing.T) { function TestRootAndSubErrPrefix (line 1280) | func TestRootAndSubErrPrefix(t *testing.T) { function TestVersionFlagExecutedOnSubcommand (line 1300) | func TestVersionFlagExecutedOnSubcommand(t *testing.T) { function TestShorthandVersionFlagExecutedOnSubcommand (line 1312) | func TestShorthandVersionFlagExecutedOnSubcommand(t *testing.T) { function TestVersionFlagOnlyAddedToRoot (line 1324) | func TestVersionFlagOnlyAddedToRoot(t *testing.T) { function TestShortVersionFlagOnlyAddedToRoot (line 1336) | func TestShortVersionFlagOnlyAddedToRoot(t *testing.T) { function TestVersionFlagOnlyExistsIfVersionNonEmpty (line 1348) | func TestVersionFlagOnlyExistsIfVersionNonEmpty(t *testing.T) { function TestShorthandVersionFlagOnlyExistsIfVersionNonEmpty (line 1358) | func TestShorthandVersionFlagOnlyExistsIfVersionNonEmpty(t *testing.T) { function TestShorthandVersionFlagOnlyAddedIfShorthandNotDefined (line 1368) | func TestShorthandVersionFlagOnlyAddedIfShorthandNotDefined(t *testing.T) { function TestShorthandVersionFlagOnlyAddedIfVersionNotDefined (line 1380) | func TestShorthandVersionFlagOnlyAddedIfVersionNotDefined(t *testing.T) { function TestUsageIsNotPrintedTwice (line 1391) | func TestUsageIsNotPrintedTwice(t *testing.T) { function TestVisitParents (line 1402) | func TestVisitParents(t *testing.T) { function TestSuggestions (line 1431) | func TestSuggestions(t *testing.T) { function TestCaseInsensitive (line 1478) | func TestCaseInsensitive(t *testing.T) { function TestCaseSensitivityBackwardCompatibility (line 1573) | func TestCaseSensitivityBackwardCompatibility(t *testing.T) { function TestRemoveCommand (line 1585) | func TestRemoveCommand(t *testing.T) { function TestReplaceCommandWithRemove (line 1597) | func TestReplaceCommandWithRemove(t *testing.T) { function TestDeprecatedCommand (line 1628) | func TestDeprecatedCommand(t *testing.T) { function TestHooks (line 1645) | func TestHooks(t *testing.T) { function TestPersistentHooks (line 1697) | func TestPersistentHooks(t *testing.T) { function testPersistentHooks (line 1719) | func testPersistentHooks(t *testing.T, expectedHookRunOrder []string) { function TestGlobalNormFuncPropagation (line 1789) | func TestGlobalNormFuncPropagation(t *testing.T) { function TestNormPassedOnLocal (line 1809) | func TestNormPassedOnLocal(t *testing.T) { function TestNormPassedOnInherited (line 1823) | func TestNormPassedOnInherited(t *testing.T) { function TestConsistentNormalizedName (line 1851) | func TestConsistentNormalizedName(t *testing.T) { function TestFlagOnPflagCommandLine (line 1869) | func TestFlagOnPflagCommandLine(t *testing.T) { function TestHiddenCommandExecutes (line 1884) | func TestHiddenCommandExecutes(t *testing.T) { function TestHiddenCommandIsHidden (line 1906) | func TestHiddenCommandIsHidden(t *testing.T) { function TestCommandsAreSorted (line 1913) | func TestCommandsAreSorted(t *testing.T) { function TestEnableCommandSortingIsDisabled (line 1935) | func TestEnableCommandSortingIsDisabled(t *testing.T) { function TestUsageWithGroup (line 1956) | func TestUsageWithGroup(t *testing.T) { function TestUsageHelpGroup (line 1977) | func TestUsageHelpGroup(t *testing.T) { function TestUsageCompletionGroup (line 1995) | func TestUsageCompletionGroup(t *testing.T) { function TestUngroupedCommand (line 2015) | func TestUngroupedCommand(t *testing.T) { function TestAddGroup (line 2037) | func TestAddGroup(t *testing.T) { function TestWrongGroupFirstLevel (line 2051) | func TestWrongGroupFirstLevel(t *testing.T) { function TestWrongGroupNestedLevel (line 2069) | func TestWrongGroupNestedLevel(t *testing.T) { function TestWrongGroupForHelp (line 2089) | func TestWrongGroupForHelp(t *testing.T) { function TestWrongGroupForCompletion (line 2109) | func TestWrongGroupForCompletion(t *testing.T) { function TestSetOutput (line 2129) | func TestSetOutput(t *testing.T) { function TestSetOut (line 2137) | func TestSetOut(t *testing.T) { function TestSetErr (line 2145) | func TestSetErr(t *testing.T) { function TestSetIn (line 2153) | func TestSetIn(t *testing.T) { function TestUsageStringRedirected (line 2161) | func TestUsageStringRedirected(t *testing.T) { function TestCommandPrintRedirection (line 2177) | func TestCommandPrintRedirection(t *testing.T) { function TestFlagErrorFunc (line 2218) | func TestFlagErrorFunc(t *testing.T) { function TestFlagErrorFuncHelp (line 2235) | func TestFlagErrorFuncHelp(t *testing.T) { function TestSortedFlags (line 2270) | func TestSortedFlags(t *testing.T) { function TestMergeCommandLineToFlags (line 2296) | func TestMergeCommandLineToFlags(t *testing.T) { function TestUseDeprecatedFlags (line 2310) | func TestUseDeprecatedFlags(t *testing.T) { function TestTraverseWithParentFlags (line 2322) | func TestTraverseWithParentFlags(t *testing.T) { function TestTraverseNoParentFlags (line 2344) | func TestTraverseNoParentFlags(t *testing.T) { function TestTraverseWithBadParentFlags (line 2364) | func TestTraverseWithBadParentFlags(t *testing.T) { function TestTraverseWithBadChildFlag (line 2382) | func TestTraverseWithBadChildFlag(t *testing.T) { function TestTraverseWithTwoSubcommands (line 2403) | func TestTraverseWithTwoSubcommands(t *testing.T) { function TestUpdateName (line 2425) | func TestUpdateName(t *testing.T) { type calledAsTestcase (line 2435) | type calledAsTestcase struct method test (line 2442) | func (tc *calledAsTestcase) test(t *testing.T) { function TestCalledAs (line 2477) | func TestCalledAs(t *testing.T) { function TestFParseErrWhitelistBackwardCompatibility (line 2498) | func TestFParseErrWhitelistBackwardCompatibility(t *testing.T) { function TestFParseErrWhitelistSameCommand (line 2509) | func TestFParseErrWhitelistSameCommand(t *testing.T) { function TestFParseErrWhitelistParentCommand (line 2525) | func TestFParseErrWhitelistParentCommand(t *testing.T) { function TestFParseErrWhitelistChildCommand (line 2549) | func TestFParseErrWhitelistChildCommand(t *testing.T) { function TestFParseErrWhitelistSiblingCommand (line 2572) | func TestFParseErrWhitelistSiblingCommand(t *testing.T) { function TestSetContext (line 2603) | func TestSetContext(t *testing.T) { function TestSetContextPreRun (line 2628) | func TestSetContextPreRun(t *testing.T) { function TestSetContextPreRunOverwrite (line 2654) | func TestSetContextPreRunOverwrite(t *testing.T) { function TestSetContextPersistentPreRun (line 2675) | func TestSetContextPersistentPreRun(t *testing.T) { constant VersionFlag (line 2706) | VersionFlag = "--version" constant HelpFlag (line 2707) | HelpFlag = "--help" function TestNoRootRunCommandExecutedWithVersionSet (line 2709) | func TestNoRootRunCommandExecutedWithVersionSet(t *testing.T) { function TestNoRootRunCommandExecutedWithoutVersionSet (line 2723) | func TestNoRootRunCommandExecutedWithoutVersionSet(t *testing.T) { function TestHelpCommandExecutedWithVersionSet (line 2737) | func TestHelpCommandExecutedWithVersionSet(t *testing.T) { function TestHelpCommandExecutedWithoutVersionSet (line 2751) | func TestHelpCommandExecutedWithoutVersionSet(t *testing.T) { function TestHelpflagCommandExecutedWithVersionSet (line 2765) | func TestHelpflagCommandExecutedWithVersionSet(t *testing.T) { function TestHelpflagCommandExecutedWithoutVersionSet (line 2779) | func TestHelpflagCommandExecutedWithoutVersionSet(t *testing.T) { function TestFind (line 2793) | func TestFind(t *testing.T) { function TestUnknownFlagShouldReturnSameErrorRegardlessOfArgPosition (line 2882) | func TestUnknownFlagShouldReturnSameErrorRegardlessOfArgPosition(t *test... function TestHelpFuncExecuted (line 2925) | func TestHelpFuncExecuted(t *testing.T) { FILE: command_win.go function preExecHook (line 30) | func preExecHook(c *Command) { FILE: completions.go constant ShellCompRequestCmd (line 31) | ShellCompRequestCmd = "__complete" constant ShellCompNoDescRequestCmd (line 34) | ShellCompNoDescRequestCmd = "__completeNoDesc" type ShellCompDirective (line 45) | type ShellCompDirective method string (line 200) | func (d ShellCompDirective) string() string { type flagCompError (line 47) | type flagCompError struct method Error (line 52) | func (e *flagCompError) Error() string { constant ShellCompDirectiveError (line 58) | ShellCompDirectiveError ShellCompDirective = 1 << iota constant ShellCompDirectiveNoSpace (line 62) | ShellCompDirectiveNoSpace constant ShellCompDirectiveNoFileComp (line 66) | ShellCompDirectiveNoFileComp constant ShellCompDirectiveFilterFileExt (line 73) | ShellCompDirectiveFilterFileExt constant ShellCompDirectiveFilterDirs (line 80) | ShellCompDirectiveFilterDirs constant ShellCompDirectiveKeepOrder (line 84) | ShellCompDirectiveKeepOrder constant shellCompDirectiveMaxValue (line 90) | shellCompDirectiveMaxValue constant ShellCompDirectiveDefault (line 95) | ShellCompDirectiveDefault ShellCompDirective = 0 constant compCmdName (line 100) | compCmdName = "completion" constant compCmdNoDescFlagName (line 101) | compCmdNoDescFlagName = "no-descriptions" constant compCmdNoDescFlagDesc (line 102) | compCmdNoDescFlagDesc = "disable completion descriptions" constant compCmdNoDescFlagDefault (line 103) | compCmdNoDescFlagDefault = false type CompletionOptions (line 107) | type CompletionOptions struct method SetDefaultShellCompDirective (line 123) | func (receiver *CompletionOptions) SetDefaultShellCompDirective(direct... function CompletionWithDesc (line 142) | func CompletionWithDesc(choice string, description string) Completion { function NoFileCompletions (line 151) | func NoFileCompletions(cmd *Command, args []string, toComplete string) (... function FixedCompletions (line 160) | func FixedCompletions(choices []Completion, directive ShellCompDirective... method RegisterFlagCompletionFunc (line 170) | func (c *Command) RegisterFlagCompletionFunc(flagName string, f Completi... method GetFlagCompletionFunc (line 186) | func (c *Command) GetFlagCompletionFunc(flagName string) (CompletionFunc... method initCompleteCmd (line 231) | func (c *Command) initCompleteCmd(args []string) { type SliceValue (line 311) | type SliceValue interface method getCompletions (line 316) | func (c *Command) getCompletions(args []string) (*Command, []Completion,... function helpOrVersionFlagPresent (line 584) | func helpOrVersionFlagPresent(cmd *Command) bool { function getFlagNameCompletions (line 596) | func getFlagNameCompletions(flag *pflag.Flag, toComplete string) []Compl... function completeRequireFlags (line 629) | func completeRequireFlags(finalCmd *Command, toComplete string) []Comple... function checkIfFlagCompletion (line 654) | func checkIfFlagCompletion(finalCmd *Command, args []string, lastArg str... method InitDefaultCompletionCmd (line 745) | func (c *Command) InitDefaultCompletionCmd(args ...string) { function findFlag (line 929) | func findFlag(cmd *Command, name string) *pflag.Flag { function CompDebug (line 952) | func CompDebug(msg string, printToStdErr bool) { function CompDebugln (line 976) | func CompDebugln(msg string, printToStdErr bool) { function CompError (line 981) | func CompError(msg string) { function CompErrorln (line 987) | func CompErrorln(msg string) { constant configEnvVarGlobalPrefix (line 993) | configEnvVarGlobalPrefix = "COBRA" constant configEnvVarSuffixDescriptions (line 994) | configEnvVarSuffixDescriptions = "COMPLETION_DESCRIPTIONS" function configEnvVar (line 1002) | func configEnvVar(name, suffix string) string { function getEnvConfig (line 1014) | func getEnvConfig(cmd *Command, suffix string) string { FILE: completions_test.go function validArgsFunc (line 27) | func validArgsFunc(cmd *Command, args []string, toComplete string) ([]st... function validArgsFunc2 (line 41) | func validArgsFunc2(cmd *Command, args []string, toComplete string) ([]s... function TestCmdNameCompletionInGo (line 55) | func TestCmdNameCompletionInGo(t *testing.T) { function TestNoCmdNameCompletionInGo (line 157) | func TestNoCmdNameCompletionInGo(t *testing.T) { function TestValidArgsCompletionInGo (line 322) | func TestValidArgsCompletionInGo(t *testing.T) { function TestValidArgsAndCmdCompletionInGo (line 376) | func TestValidArgsAndCmdCompletionInGo(t *testing.T) { function TestValidArgsFuncAndCmdCompletionInGo (line 426) | func TestValidArgsFuncAndCmdCompletionInGo(t *testing.T) { function TestFlagNameCompletionInGo (line 493) | func TestFlagNameCompletionInGo(t *testing.T) { function TestFlagNameCompletionInGoWithDesc (line 583) | func TestFlagNameCompletionInGoWithDesc(t *testing.T) { type customMultiString (line 676) | type customMultiString method String (line 680) | func (s *customMultiString) String() string { method Set (line 684) | func (s *customMultiString) Set(v string) error { method Type (line 689) | func (s *customMultiString) Type() string { method GetSlice (line 693) | func (s *customMultiString) GetSlice() []string { function TestFlagNameCompletionRepeat (line 697) | func TestFlagNameCompletionRepeat(t *testing.T) { function TestRequiredFlagNameCompletionInGo (line 844) | func TestRequiredFlagNameCompletionInGo(t *testing.T) { function TestFlagFileExtFilterCompletionInGo (line 1038) | func TestFlagFileExtFilterCompletionInGo(t *testing.T) { function TestFlagDirFilterCompletionInGo (line 1160) | func TestFlagDirFilterCompletionInGo(t *testing.T) { function TestValidArgsFuncCmdContext (line 1276) | func TestValidArgsFuncCmdContext(t *testing.T) { function TestValidArgsFuncSingleCmd (line 1318) | func TestValidArgsFuncSingleCmd(t *testing.T) { function TestValidArgsFuncSingleCmdInvalidArg (line 1357) | func TestValidArgsFuncSingleCmdInvalidArg(t *testing.T) { function TestValidArgsFuncChildCmds (line 1384) | func TestValidArgsFuncChildCmds(t *testing.T) { function TestValidArgsFuncAliases (line 1488) | func TestValidArgsFuncAliases(t *testing.T) { function TestValidArgsFuncInBashScript (line 1544) | func TestValidArgsFuncInBashScript(t *testing.T) { function TestNoValidArgsFuncInBashScript (line 1560) | func TestNoValidArgsFuncInBashScript(t *testing.T) { function TestCompleteCmdInBashScript (line 1575) | func TestCompleteCmdInBashScript(t *testing.T) { function TestCompleteNoDesCmdInZshScript (line 1591) | func TestCompleteNoDesCmdInZshScript(t *testing.T) { function TestCompleteCmdInZshScript (line 1607) | func TestCompleteCmdInZshScript(t *testing.T) { function TestFlagCompletionInGo (line 1624) | func TestFlagCompletionInGo(t *testing.T) { function TestValidArgsFuncChildCmdsWithDesc (line 1717) | func TestValidArgsFuncChildCmdsWithDesc(t *testing.T) { function TestFlagCompletionWithNotInterspersedArgs (line 1821) | func TestFlagCompletionWithNotInterspersedArgs(t *testing.T) { function TestFlagCompletionWorksRootCommandAddedAfterFlags (line 2044) | func TestFlagCompletionWorksRootCommandAddedAfterFlags(t *testing.T) { function TestFlagCompletionForPersistentFlagsCalledFromSubCmd (line 2079) | func TestFlagCompletionForPersistentFlagsCalledFromSubCmd(t *testing.T) { function TestFlagCompletionConcurrentRegistration (line 2121) | func TestFlagCompletionConcurrentRegistration(t *testing.T) { function TestFlagCompletionInGoWithDesc (line 2187) | func TestFlagCompletionInGoWithDesc(t *testing.T) { function TestValidArgsNotValidArgsFunc (line 2280) | func TestValidArgsNotValidArgsFunc(t *testing.T) { function TestArgAliasesCompletionInGo (line 2323) | func TestArgAliasesCompletionInGo(t *testing.T) { function TestCompleteHelp (line 2381) | func TestCompleteHelp(t *testing.T) { function removeCompCmd (line 2451) | func removeCompCmd(rootCmd *Command) { function TestDefaultCompletionCmd (line 2461) | func TestDefaultCompletionCmd(t *testing.T) { function TestCompleteCompletion (line 2607) | func TestCompleteCompletion(t *testing.T) { function TestMultipleShorthandFlagCompletion (line 2694) | func TestMultipleShorthandFlagCompletion(t *testing.T) { function TestCompleteWithDisableFlagParsing (line 2787) | func TestCompleteWithDisableFlagParsing(t *testing.T) { function TestCompleteWithRootAndLegacyArgs (line 2850) | func TestCompleteWithRootAndLegacyArgs(t *testing.T) { function TestCompletionFuncCompatibility (line 2896) | func TestCompletionFuncCompatibility(t *testing.T) { function TestFixedCompletions (line 2980) | func TestFixedCompletions(t *testing.T) { function TestFixedCompletionsWithCompletionHelpers (line 3007) | func TestFixedCompletionsWithCompletionHelpers(t *testing.T) { function TestCompletionForGroupedFlags (line 3057) | func TestCompletionForGroupedFlags(t *testing.T) { function TestCompletionForOneRequiredGroupFlags (line 3157) | func TestCompletionForOneRequiredGroupFlags(t *testing.T) { function TestCompletionForMutuallyExclusiveFlags (line 3255) | func TestCompletionForMutuallyExclusiveFlags(t *testing.T) { function TestCompletionCobraFlags (line 3349) | func TestCompletionCobraFlags(t *testing.T) { function TestArgsNotDetectedAsFlagsCompletionInGo (line 3583) | func TestArgsNotDetectedAsFlagsCompletionInGo(t *testing.T) { function TestGetFlagCompletion (line 3647) | func TestGetFlagCompletion(t *testing.T) { function TestGetEnvConfig (line 3737) | func TestGetEnvConfig(t *testing.T) { function TestDisableDescriptions (line 3822) | func TestDisableDescriptions(t *testing.T) { function TestInitDefaultCompletionCmd (line 3930) | func TestInitDefaultCompletionCmd(t *testing.T) { function TestCustomDefaultShellCompDirective (line 4019) | func TestCustomDefaultShellCompDirective(t *testing.T) { FILE: doc/cmd_test.go function emptyRun (line 24) | func emptyRun(*cobra.Command, []string) {} function init (line 26) | func init() { function checkStringContains (line 95) | func checkStringContains(t *testing.T, got, expected string) { function checkStringOmits (line 101) | func checkStringOmits(t *testing.T, got, expected string) { FILE: doc/man_docs.go function GenManTree (line 38) | func GenManTree(cmd *cobra.Command, header *GenManHeader, dir string) er... function GenManTreeFromOpts (line 48) | func GenManTreeFromOpts(cmd *cobra.Command, opts GenManTreeOptions) error { type GenManTreeOptions (line 84) | type GenManTreeOptions struct type GenManHeader (line 94) | type GenManHeader struct function GenMan (line 105) | func GenMan(cmd *cobra.Command, header *GenManHeader, w io.Writer) error { function fillHeader (line 118) | func fillHeader(header *GenManHeader, name string, disableAutoGen bool) ... function manPreamble (line 143) | func manPreamble(buf io.StringWriter, header *GenManHeader, cmd *cobra.C... function manPrintFlags (line 159) | func manPrintFlags(buf io.StringWriter, flags *pflag.FlagSet) { function manPrintOptions (line 187) | func manPrintOptions(buf io.StringWriter, command *cobra.Command) { function genMan (line 202) | func genMan(cmd *cobra.Command, header *GenManHeader) []byte { FILE: doc/man_docs_test.go function assertNoErr (line 29) | func assertNoErr(t *testing.T, e error) { function translate (line 35) | func translate(in string) string { function TestGenManDoc (line 39) | func TestGenManDoc(t *testing.T) { function TestGenManNoHiddenParents (line 69) | func TestGenManNoHiddenParents(t *testing.T) { function TestGenManNoGenTag (line 105) | func TestGenManNoGenTag(t *testing.T) { function TestGenManSeeAlso (line 127) | func TestGenManSeeAlso(t *testing.T) { function TestManPrintFlagsHidesShortDeprecated (line 149) | func TestManPrintFlagsHidesShortDeprecated(t *testing.T) { function TestGenManTree (line 164) | func TestGenManTree(t *testing.T) { function assertLineFound (line 186) | func assertLineFound(scanner *bufio.Scanner, expectedLine string) error { function assertNextLineEquals (line 201) | func assertNextLineEquals(scanner *bufio.Scanner, expectedLine string) e... function BenchmarkGenManToFile (line 217) | func BenchmarkGenManToFile(b *testing.B) { FILE: doc/man_examples_test.go function ExampleGenManTree (line 25) | func ExampleGenManTree() { function ExampleGenMan (line 37) | func ExampleGenMan() { FILE: doc/md_docs.go constant markdownExtension (line 30) | markdownExtension = ".md" function printOptions (line 32) | func printOptions(buf *bytes.Buffer, cmd *cobra.Command, name string) er... function GenMarkdown (line 52) | func GenMarkdown(cmd *cobra.Command, w io.Writer) error { function GenMarkdownCustom (line 57) | func GenMarkdownCustom(cmd *cobra.Command, w io.Writer, linkHandler func... function GenMarkdownTree (line 125) | func GenMarkdownTree(cmd *cobra.Command, dir string) error { function GenMarkdownTreeCustom (line 133) | func GenMarkdownTreeCustom(cmd *cobra.Command, dir string, filePrepender... FILE: doc/md_docs_test.go function TestGenMdDoc (line 26) | func TestGenMdDoc(t *testing.T) { function TestGenMdDocWithNoLongOrSynopsis (line 44) | func TestGenMdDocWithNoLongOrSynopsis(t *testing.T) { function TestGenMdNoHiddenParents (line 58) | func TestGenMdNoHiddenParents(t *testing.T) { function TestGenMdNoTag (line 81) | func TestGenMdNoTag(t *testing.T) { function TestGenMdTree (line 94) | func TestGenMdTree(t *testing.T) { function BenchmarkGenMarkdownToFile (line 111) | func BenchmarkGenMarkdownToFile(b *testing.B) { FILE: doc/rest_docs.go function printOptionsReST (line 30) | func printOptionsReST(buf *bytes.Buffer, cmd *cobra.Command, name string... function defaultLinkHandler (line 52) | func defaultLinkHandler(name, ref string) string { function GenReST (line 57) | func GenReST(cmd *cobra.Command, w io.Writer) error { function GenReSTCustom (line 62) | func GenReSTCustom(cmd *cobra.Command, w io.Writer, linkHandler func(str... function GenReSTTree (line 138) | func GenReSTTree(cmd *cobra.Command, dir string) error { function GenReSTTreeCustom (line 145) | func GenReSTTreeCustom(cmd *cobra.Command, dir string, filePrepender fun... function indentString (line 173) | func indentString(s, p string) string { FILE: doc/rest_docs_test.go function TestGenRSTDoc (line 26) | func TestGenRSTDoc(t *testing.T) { function TestGenRSTNoHiddenParents (line 43) | func TestGenRSTNoHiddenParents(t *testing.T) { function TestGenRSTNoTag (line 66) | func TestGenRSTNoTag(t *testing.T) { function TestGenRSTTree (line 80) | func TestGenRSTTree(t *testing.T) { function BenchmarkGenReSTToFile (line 98) | func BenchmarkGenReSTToFile(b *testing.B) { FILE: doc/util.go function hasSeeAlso (line 26) | func hasSeeAlso(cmd *cobra.Command) bool { function forceMultiLine (line 41) | func forceMultiLine(s string) string { type byName (line 48) | type byName method Len (line 50) | func (s byName) Len() int { return len(s) } method Swap (line 51) | func (s byName) Swap(i, j int) { s[i], s[j] = s[j], s[i] } method Less (line 52) | func (s byName) Less(i, j int) bool { return s[i].Name() < s[j].Name() } FILE: doc/yaml_docs.go type cmdOption (line 30) | type cmdOption struct type cmdDoc (line 37) | type cmdDoc struct function GenYamlTree (line 53) | func GenYamlTree(cmd *cobra.Command, dir string) error { function GenYamlTreeCustom (line 60) | func GenYamlTreeCustom(cmd *cobra.Command, dir string, filePrepender, li... function GenYaml (line 88) | func GenYaml(cmd *cobra.Command, w io.Writer) error { function GenYamlCustom (line 93) | func GenYamlCustom(cmd *cobra.Command, w io.Writer, linkHandler func(str... function genFlagResult (line 149) | func genFlagResult(flags *pflag.FlagSet) []cmdOption { FILE: doc/yaml_docs_test.go function TestGenYamlDoc (line 27) | func TestGenYamlDoc(t *testing.T) { function TestGenYamlNoTag (line 44) | func TestGenYamlNoTag(t *testing.T) { function TestGenYamlTree (line 57) | func TestGenYamlTree(t *testing.T) { function TestGenYamlDocRunnable (line 75) | func TestGenYamlDocRunnable(t *testing.T) { function BenchmarkGenYamlToFile (line 86) | func BenchmarkGenYamlToFile(b *testing.B) { FILE: fish_completions.go function genFishComp (line 25) | func genFishComp(buf io.StringWriter, name string, includeDesc bool) { method GenFishCompletion (line 276) | func (c *Command) GenFishCompletion(w io.Writer, includeDesc bool) error { method GenFishCompletionFile (line 284) | func (c *Command) GenFishCompletionFile(filename string, includeDesc boo... FILE: fish_completions_test.go function TestCompleteNoDesCmdInFishScript (line 26) | func TestCompleteNoDesCmdInFishScript(t *testing.T) { function TestCompleteCmdInFishScript (line 42) | func TestCompleteCmdInFishScript(t *testing.T) { function TestProgWithDash (line 59) | func TestProgWithDash(t *testing.T) { function TestProgWithColon (line 74) | func TestProgWithColon(t *testing.T) { function TestFishCompletionNoActiveHelp (line 89) | func TestFishCompletionNoActiveHelp(t *testing.T) { function TestGenFishCompletionFile (line 101) | func TestGenFishCompletionFile(t *testing.T) { function TestFailGenFishCompletionFile (line 120) | func TestFailGenFishCompletionFile(t *testing.T) { FILE: flag_groups.go constant requiredAsGroupAnnotation (line 26) | requiredAsGroupAnnotation = "cobra_annotation_required_if_others_set" constant oneRequiredAnnotation (line 27) | oneRequiredAnnotation = "cobra_annotation_one_required" constant mutuallyExclusiveAnnotation (line 28) | mutuallyExclusiveAnnotation = "cobra_annotation_mutually_exclusive" method MarkFlagsRequiredTogether (line 33) | func (c *Command) MarkFlagsRequiredTogether(flagNames ...string) { method MarkFlagsOneRequired (line 49) | func (c *Command) MarkFlagsOneRequired(flagNames ...string) { method MarkFlagsMutuallyExclusive (line 65) | func (c *Command) MarkFlagsMutuallyExclusive(flagNames ...string) { method ValidateFlagGroups (line 81) | func (c *Command) ValidateFlagGroups() error { function hasAllFlags (line 111) | func hasAllFlags(fs *flag.FlagSet, flagnames ...string) bool { function processFlagForGroupAnnotation (line 121) | func processFlagForGroupAnnotation(flags *flag.FlagSet, pflag *flag.Flag... function validateRequiredFlagGroups (line 144) | func validateRequiredFlagGroups(data map[string]map[string]bool) error { function validateOneRequiredFlagGroups (line 167) | func validateOneRequiredFlagGroups(data map[string]map[string]bool) error { function validateExclusiveFlagGroups (line 188) | func validateExclusiveFlagGroups(data map[string]map[string]bool) error { function sortedKeys (line 209) | func sortedKeys(m map[string]map[string]bool) []string { method enforceFlagGroupsForCompletion (line 225) | func (c *Command) enforceFlagGroupsForCompletion() { FILE: flag_groups_test.go function TestValidateFlagGroups (line 22) | func TestValidateFlagGroups(t *testing.T) { FILE: powershell_completions.go function genPowerShellComp (line 28) | func genPowerShellComp(buf io.StringWriter, name string, includeDesc boo... method genPowerShellCompletion (line 313) | func (c *Command) genPowerShellCompletion(w io.Writer, includeDesc bool)... method genPowerShellCompletionFile (line 320) | func (c *Command) genPowerShellCompletionFile(filename string, includeDe... method GenPowerShellCompletionFile (line 331) | func (c *Command) GenPowerShellCompletionFile(filename string) error { method GenPowerShellCompletion (line 337) | func (c *Command) GenPowerShellCompletion(w io.Writer) error { method GenPowerShellCompletionFileWithDesc (line 342) | func (c *Command) GenPowerShellCompletionFileWithDesc(filename string) e... method GenPowerShellCompletionWithDesc (line 348) | func (c *Command) GenPowerShellCompletionWithDesc(w io.Writer) error { FILE: powershell_completions_test.go function TestPwshCompletionNoActiveHelp (line 23) | func TestPwshCompletionNoActiveHelp(t *testing.T) { FILE: shell_completions.go method MarkFlagRequired (line 24) | func (c *Command) MarkFlagRequired(name string) error { method MarkPersistentFlagRequired (line 31) | func (c *Command) MarkPersistentFlagRequired(name string) error { function MarkFlagRequired (line 38) | func MarkFlagRequired(flags *pflag.FlagSet, name string) error { method MarkFlagFilename (line 44) | func (c *Command) MarkFlagFilename(name string, extensions ...string) er... method MarkFlagCustom (line 54) | func (c *Command) MarkFlagCustom(name string, f string) error { method MarkPersistentFlagFilename (line 61) | func (c *Command) MarkPersistentFlagFilename(name string, extensions ...... function MarkFlagFilename (line 67) | func MarkFlagFilename(flags *pflag.FlagSet, name string, extensions ...s... function MarkFlagCustom (line 77) | func MarkFlagCustom(flags *pflag.FlagSet, name string, f string) error { method MarkFlagDirname (line 83) | func (c *Command) MarkFlagDirname(name string) error { method MarkPersistentFlagDirname (line 90) | func (c *Command) MarkPersistentFlagDirname(name string) error { function MarkFlagDirname (line 96) | func MarkFlagDirname(flags *pflag.FlagSet, name string) error { FILE: zsh_completions.go method GenZshCompletionFile (line 25) | func (c *Command) GenZshCompletionFile(filename string) error { method GenZshCompletion (line 31) | func (c *Command) GenZshCompletion(w io.Writer) error { method GenZshCompletionFileNoDesc (line 36) | func (c *Command) GenZshCompletionFileNoDesc(filename string) error { method GenZshCompletionNoDesc (line 42) | func (c *Command) GenZshCompletionNoDesc(w io.Writer) error { method MarkZshCompPositionalArgumentFile (line 55) | func (c *Command) MarkZshCompPositionalArgumentFile(argPosition int, pat... method MarkZshCompPositionalArgumentWords (line 66) | func (c *Command) MarkZshCompPositionalArgumentWords(argPosition int, wo... method genZshCompletionFile (line 70) | func (c *Command) genZshCompletionFile(filename string, includeDesc bool... method genZshCompletion (line 80) | func (c *Command) genZshCompletion(w io.Writer, includeDesc bool) error { function genZshComp (line 87) | func genZshComp(buf io.StringWriter, name string, includeDesc bool) { FILE: zsh_completions_test.go function TestZshCompletionWithActiveHelp (line 23) | func TestZshCompletionWithActiveHelp(t *testing.T) {